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