StrataFrame Forum
Back
Login
Login
Home
»
StrataFrame Application Framework - V1
»
Role Based Security
»
Security Views and finding a permission
Security Views and finding a permission
Post Reply
Like
1
Security Views and finding a permission
View
Flat Ascending
Flat Descending
Threaded
Options
Subscribe to topic
Print This Topic
RSS Feed
Goto Topics Forum
Author
Message
Greg McGuffey
Greg McGuffey
posted 18 Years Ago
ANSWER
HOT
Topic Details
Share Topic
Group: Forum Members
Posts: 2K,
Visits: 6.6K
Do the two views built by the security package (from DDT) define all permissions for a user? I.e. if I query the SFSUserPermissionInfo for a us_pk = 1 and pm_key = 'myPerm' and I query the SFSUserRolePermissionInfo view for us_pk = 1 and pm_key = 'myPerm', I would know for certain if the user has the 'myPerm' permission right?
Reply
Like
1
Replies
Trent Taylor
Trent Taylor
posted 18 Years Ago
ANSWER
Post Details
Share Post
Group: StrataFrame Developers
Posts: 6.6K,
Visits: 7K
I don't understand why you are trying to access the raw views. You can get this information logically through the SecurityBasics.CurrentUser.GetPermision(...).
Reply
Like
1
Greg McGuffey
Greg McGuffey
posted 18 Years Ago
ANSWER
Post Details
Share Post
Group: Forum Members
Posts: 2K,
Visits: 6.6K
Because your security system doesn't do row level security. I'm having to jump through all kinds of hoops to deal with it
I have to build forms that manage this row level security, including a form that allows users to be assigned to projects and to assign the roles they will be allowed on that project. I have to determine which users are eligible for this. I'm categorizing users based on a special permission, 'AllProjectAccess'. If they have this permission, they have access to all projects and shouldn't be handled by the row security system. Otherwise, I need to deal with them. So, I have need to determine if every user in the system has this permission.
I was using a very convoluted method of getting the BO of users, loop through all the users, creating a LoggedInUser for each, checking permissions, building the criterion for an In() clause, and finally the filling my custom BO with the appropriate users. Ugly. If these views work as expected, then life is MUCH easier. Create view that is a UNION of them, then query for a user/permission and I know if they have the permission...if it works like I think it does.
So, that why
Reply
Like
1
Trent Taylor
Trent Taylor
posted 18 Years Ago
ANSWER
Post Details
Share Post
Group: StrataFrame Developers
Posts: 6.6K,
Visits: 7K
That's fine. Rather than me trying to understand your code, just execute the views to see if you get the data you want. The structures are explained in the documentation. Setup a simple sceneario first so that you are not looking at a lot of data.
Reply
Like
1
Greg McGuffey
Greg McGuffey
posted 18 Years Ago
ANSWER
Post Details
Share Post
Group: Forum Members
Posts: 2K,
Visits: 6.6K
OK, I'll check the documentation. I must have missed it.
Reply
Like
1
GO
Merge Selected
Merge into selected topic...
Merge into merge target...
Merge into a specific topic ID...
Open Merge
Threaded View
Threaded View
Security Views and finding a permission
Greg McGuffey
-
18 Years Ago
I don't understand why you are trying to access the raw views. You can...
Trent L. Taylor
-
18 Years Ago
Because your security system doesn't do row level security. I'm having...
Greg McGuffey
-
18 Years Ago
That's fine. Rather than me trying to understand your code, just...
Trent L. Taylor
-
18 Years Ago
OK, I'll check the documentation. I must have missed it.
Greg McGuffey
-
18 Years Ago
Greg, I’m also doing my own row based security and the...
Larry Caylor
-
18 Years Ago
Thanks for the info Larry. Based on what I've seen, the...
Greg McGuffey
-
18 Years Ago
The user is always the most granular level. This is explained in the...
Trent L. Taylor
-
18 Years Ago
[quote]Based on what I've seen, the SFSUserRolesPermissionInfo view...
Steve L. Taylor
-
18 Years Ago
[quote](regarding SFSUserRolePermissionInfo view)...This shouldn't be...
Greg McGuffey
-
18 Years Ago
Yes, the SFSUserRolePermissionInfo view does only return the roles...
Steve L. Taylor
-
18 Years Ago
This is what I figured out :D Use the two views from within code to...
Greg McGuffey
-
18 Years Ago
Steve,
I can't find the LoggedInUser class in any of the...
Greg McGuffey
-
18 Years Ago
There are 4 solutions that are part of the StrataFrame Source Code...
StrataFrame Team
-
18 Years Ago
Doh... I did miss something! :blush:
This is going to make...
Greg McGuffey
-
18 Years Ago
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