Click here to Skip to main content
15,905,877 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have tables name Form,Users

I want each user in Table user access particular Fields in Table Form. for ex:

Form:
Field1
Field2
Field3

Users:
User1
user2
user1 can modify fields 1 and 2, user2 can modify Field3!!!!

How can I do that?
Posted

1 solution

You are looking for role based security here. Your data base needs to have following tables:

User
Role
Rights


Now, once you have this, your application needs to check if current user is linked to role which has right to update the values or not.
 
Share this answer
 
Comments
st_249 12-Jan-15 7:33am    
how can i say in rights table that field1 can be edited by user1???
dan!sh 12-Jan-15 7:35am    
You will have to figure out the rights by yourself. Something like RightID 1 means user can edit the field. You can go through this link to begin: http://msdn.microsoft.com/en-us/library/shz8h065%28v=vs.110%29.aspx

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