How to protect certain actions from usage according to a custom UserRoles table I created
-
30-10-2019 - |
문제
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?
올바른 솔루션이 없습니다
제휴하지 않습니다 StackOverflow