Roles work by assigning meaning to what the user can do. Roles do not change, but the behavior for these roles. Ultra dynamic solutions are usually redundant.
So maybe you have the following roles
- Super admin
- Support
- Administrator
You may have different actions (this will depend on your system)
Etc
- Super Admin [View, Modify, Approve]
- Support [View]
- Admin [View, Edit]
Actions. , , -, . - . , (Database Driven to make modifiable)
, " ", , , , .
, .
- UserRole [ID, UserName, RoleID] ( , , DISTINCT , , : UserRole , .)
- [ID, ]
- [ID, ]
- RoleAction [ID, RoleID, ActionID] ( RoleID ActionID)
, .. _. , () , RoleAction < >
Action Role. . , , , Unit Test, .