I use standard tables and .NET database code for .NET, with .NET 4.0, C #, and MVC 3.
Basically, I want to have roles (which are included in the structure), and then be able to assign permissions for these roles (which, as far as I know, are not included).
So, I want to assign permissions for roles. A user as an accountant could not edit and delete employees, but a user as an administrator could. Since these permissions can change at any time, instead of checking User.IsInRole("Administrator") , I would like to do something like User.HasPermission("EditEmployee") .
Perhaps I could create some custom tables and the code itself, but I would prefer to use the .NET Framework if it is already built-in. Is there anything similar? If not, is there a library in which it does ?
Steven
source share