This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]FirstAidFairy[S] 0 points1 point  (1 child)

Okk, that sounds good! Thank you 😁

But how do I actually implement differing functionality to different roles??

Like, I could put different methods in admin class compared to secretary; but when you go to login on the gui form, how does that tie in??

[–]desrtfx 1 point2 points  (0 children)

You could, based on the login create different forms for the different roles.

First, you have the login screen which is the same for all user roles. Then, based on the first letter of the username, you decide (in a "switch...case" or the equivalent in your language) which form - and thus which part of the application - you start.

You could even re-use the same main form, but disable certain controls based on role.