Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Creating roles w/ assignable permissions

Status
Not open for further replies.

digiduck

Programmer
Apr 4, 2003
95
US
For my latest project I need to implement a security scheme that allows the creation of user roles and then the ability to assign permissions to those roles. Just like in most Forum products where you can give certain roles permissions like, "Allow Edit Post, Moderate Post, Delete Post, etc...".

I am finding lots of articles online about role management in asp.net 2.0 and how to assign users to roles and check which roles a user belongs to, however I can't find anything about store permissions with each role and check whether a user's role has a given permission.

If anyone here can give me some clues as to where to look or an article to read I'd be very grateful.

ud


tkc
 
I just completed code for this in my current project. You will have to create your own table(s) that store permissions for the roles. Then, when the user logs in, get the role(s) they belong to, then get the permission(s) per role.

Jim
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top