Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Changing a users User Role at runtime
Message
 
To
30/08/2005 21:55:29
Del Despain
Colorado Plateau Associates
Hurricane, Utah, United States
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
01045366
Message ID:
01046028
Views:
18
Del,

>Is there a simple way to change a user's privileges by changing their role temporarily without making changes to the UserRoles table?
>
>For example, a user might need edit privileges only when working on something they submitted to the database, but not for information others have entered.

You could create a subclass of mmSecurityManager and create a list of security "exceptions" which you could dynamically configure at run time. You could then override the GetAccessLevel() method and have it check this security exceptions list before calling the default base class method.

Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform