StrataFrame Forum
Home      Members   Calendar   Who's On
Welcome Guest ( Login | Register )
      



how to check permissions for user other than...Expand / Collapse
Author
Message
Posted 07/01/2009 12:39:53 PM


Advanced StrataFrame User

Advanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame User

Group: StrataFrame Users
Last Login: Today @ 11:36:51 AM
Posts: 825, Visits: 38,668
I need to check permissions for a given key for a user for which I will only have either the username or primekey value.It will not be the currently logged in user. How please?
Post #23729
Posted 07/01/2009 1:28:42 PM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: Yesterday @ 1:48:50 PM
Posts: 6,210, Visits: 6,075
You will just need to create a LoggedInUser instance and after taht you can do everything that you want to do. The below logic will bypass authentication:

'-- Establish Locals
Dim user As New MicroFour.StrataFrame.Security.BusinessObjects.SFSUsersBO()
Dim rbsUser As MicroFour.StrataFrame.Security.LoggedInUser

'-- Populate the BO with the user
user.FillByUserName("MyUserName")

'-- Create the logged in user reference
rbsUser = MicroFour.StrataFrame.Security.LoggedInUser.CreateNew(user)

'-- You can now test on permissions etc. off of the rbsUser


Post #23730
« Prev Topic | Next Topic »


Reading This TopicExpand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: Trent L. Taylor, Steve L. Taylor

PermissionsExpand / Collapse

All times are GMT -6:00, Time now is 10:56pm

Powered by InstantForum.NET v4.1.4 © 2010
Execution: 0.063. 9 queries. Compression Enabled.
Site Map - Home - My Account - Forum - About Us - Contact Us - Try It - Buy It

Microsoft, Visual Studio, and the Visual Studio logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries.