Click here to Skip to main content
15,887,361 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I am developing a system. It is contain different user rights for same user roles. I will explain it from example.
Eg: Manager, Normal User and Admin,etc
some managers need permission to access "Product page" but not all Managers need to access it. Using Simple Membership in MVC i am unable to do this. Because i can't create different user Role for this Special managers. Help to get solution for this problem
Posted
Updated 3-Sep-15 16:56pm
v2
Comments
Sergey Alexandrovich Kryukov 3-Sep-15 9:16am    
It doesn't seem to make sense: if one manager needs different permissions than another one, isn't it because they need to play different roles?
—SA
Philippe Mori 3-Sep-15 12:30pm    
Why you cannot create different roles? If you don't, then you have to do your own code.
Chamath Viduranga 3-Sep-15 22:47pm    
I can't create different roles. because this is an ERP system. so there are many more members using the system and it can be more roles and roles can be changing. So I need to use solution from using the back end(Database) .

1 solution

Please see my comment to the question. By your description, it's just you have different manager roles. Add them. This is exactly the purpose of the roles. This is a mapping between set of permissions and set of users.

—SA
 
Share this answer
 
Comments
Philippe Mori 3-Sep-15 12:29pm    
Exactly. OP need to add ProductManager role for example.
Sergey Alexandrovich Kryukov 3-Sep-15 12:40pm    
Right.
—SA
Chamath Viduranga 3-Sep-15 22:55pm    
I can't create different roles. because this is an ERP system. so there are many more members using the system and it can be more roles and roles can be changing. So I need to use solution from using the back end(Database) .
This is not about user roles. This is about User Permission
Sergey Alexandrovich Kryukov 4-Sep-15 3:11am    
There is no such thing as miracle. It role set is inadequate to required permissions, you just face the problem you face. Didn't we explain you what a permissions and what are roles, in reality?
—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900