Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Little problem security
Message
 
À
24/02/2010 13:19:31
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
01450803
Message ID:
01450812
Vues:
62
Joel,

>I have a little problem, I’m using Mere mortal for VS 2005 and I want to put the security on, which I did. I want to use it very simple, just checking the global role of the user before displaying the form (GetUserRolesAccessLevel(mmAppBase.UserMgr.UserPK, Me.ControlID)). A user will only have one role.
>How do I do that? Regards, Joel 

You can get a list of all the roles a user belongs to by calling this code:
DataSet ds = mmAppBase.SecurityMgr.oRole.GetUserRoles(userPK);
Best 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