This is the basic database structure for Users and UserRoles.

enter image description here

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?

没有正确的解决方案

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top