Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Changing a users User Role at runtime
Message
 
À
30/08/2005 21:55:29
Del Despain
Colorado Plateau Associates
Hurricane, Utah, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
01045366
Message ID:
01046028
Vues:
17
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform