Click here to Skip to main content
15,077,377 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
HI i am trying to create a web application with multiple users who have different roles and permissions and also am trying to add dynamically the permissions to the user
example
if i have a normal user whom i am giving view option
and employee view,create,update option in future if i want to give the normal user create option also it should be done.

i am not getting exactly the idea to do .i am a beginner please help me with your suggestions.

according to the idea i have i have create a database where i mention role(varchar),create(bit),delete(bit),update(bit).

please help me to proceed further
to make it user friendly so that the front end user can change the permissions
Posted

1 solution

You should define the roles: user, admin, editor etc. That will act as a base table for all the users. Then assign rights to the roles. This will be done in your code where you will check for the roles and then decide the permissions.

Assign roles to the users and proceed. :)

Search for "role based security" and you will find some decent results to begin with.
   

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