Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Little problem security
Message
 
To
24/02/2010 13:19:31
Joel Casse
Bishops University
Lennoxville, Quebec, Canada
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
01450803
Message ID:
01450812
Views:
61
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform