Just looking for some advice on membership/roles/profiles.
Requirement is for approx 5 roles, e.g. Admin, Account Manager, Dealer, Branch. Each role will have a different set of profile information attached. Also, dealers will be created by an account manager, will needs to be stored and reported on. Not sure the best way to set this up.
- Have the profile table set up with all the fields regardless of role, then on that roles editing page, get/set the profile custom from there(this would sit in the presentation layer). Profile would also contain the parent userId for mapping, or create a link table with userID and parentUserId. This would be then mapped by a user class(interface).
- Do not use the profile table and set up a separate table for each role profile instead. Create a user interface and then each role would have it's own class implementation.
As there are a set number of admin tabs and each function is directly tied to a role, checking security based on rol ...
Go to the complete details ...