How to protect certain actions from usage according to a custom UserRoles table I created
-
30-10-2019 - |
Question
This is the basic database structure for Users and UserRoles.
My client wants to be able to look at a Role and tick some boxes, "This role can do x, y and z". X, Y and Z being some actions in the application.
This isn't a new idea, and I'm sure there is a proven pattern for this situation. Similar to what Wordpress does, it selects functions a role Foo can perform, and a User belongs to that Role.
Any suggestions on an MVC3 specific solution?
No correct solution
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow