StrataFrame Forum
Back
Login
Login
Home
»
StrataFrame Application Framework - V1
»
Role Based Security
»
how to check permissions for user other than the current user
how to check permissions for user other than the current user
Post Reply
Like
1
how to check permissions for user other than the current user
View
Flat Ascending
Flat Descending
Threaded
Options
Subscribe to topic
Print This Topic
RSS Feed
Goto Topics Forum
Author
Message
Trent Taylor
Trent Taylor
posted 15 Years Ago
ANSWER
Post Details
Share Post
Group: StrataFrame Developers
Posts: 6.6K,
Visits: 6.9K
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
Reply
Like
1
Keith Chisarik
Keith Chisarik
posted 15 Years Ago
ANSWER
Topic Details
Share Topic
Group: StrataFrame Users
Posts: 939,
Visits: 40K
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?
Keith Chisarik
Sigma Data Systems
Reply
Like
1
GO
Merge Selected
Merge into selected topic...
Merge into merge target...
Merge into a specific topic ID...
Open Merge
Post Reply
Like
1
Similar Topics
Post Quoted Reply
Reading This Topic
Login
Login
Remember Me
Reset Password
Resend Validation Email
Login
Explore
Messages
Mentions
Search