StrataFrame Forum
Back
Login
Login
Home
»
StrataFrame Application Framework - V1
»
Role Based Security
»
Slight problem with SecurityUser accessing Security Editor
Slight problem with SecurityUser accessing Security Editor
Post Reply
Like
1
Slight problem with SecurityUser accessing Security Editor
View
Flat Ascending
Flat Descending
Threaded
Options
Subscribe to topic
Print This Topic
RSS Feed
Goto Topics Forum
Author
Message
Charles Thomas Blankenship...
Charles Thomas Blankenship...
posted 10 Years Ago
ANSWER
Topic Details
Share Topic
Group: Awaiting Activation
Posts: 172,
Visits: 12K
When I log into the application using "secusr" and password, I can test to see if that account has the permission to access the security editor or not (and appropriately enable or disable the associated button). But, when I launch the form as "secusr" I receive a unhelpful error message "Access denied".
Here
is a short video.
if (SecurityBasics.CurrentUser.GetPermission("Security Editor").Action == PermissionAction.Grant)
{
cmdSecurity.Enabled = true;
}
else if (SecurityBasics.CurrentUser.UserPK == -2)
{
cmdSecurity.Enabled = true;
}
else
{
cmdSecurity.Enabled = false;
}
Another oddity that shouldn't "be" is the request for "Security Editor" permission should be "Grant" for both the "secusr" and "administrator" account ... isn't that the way of it?
Charles T. Blankenship
Senior Consultant
Novant Consulting, Inc.
704.975.7152
http://www.novantconsulting.com
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
Slight problem with SecurityUser accessing Security Editor
Charles Thomas Blankenship
-
10 Years Ago
In the "AppMain.vb / Program.cs", have you set the...
Ivan George Borges
-
10 Years Ago
Yes ... [codesnippet]SecurityBasics.SecurityMaintenanceUserName =...
Charles Thomas Blankenship
-
10 Years Ago
It might just be a typo then, but in your original message you stated...
Ivan George Borges
-
10 Years Ago
The code snippet is the accurate data ... here is an illustration...
Charles Thomas Blankenship
-
10 Years Ago
I have tried to reproduce this issue on my environment and haven't...
Ivan George Borges
-
10 Years Ago
Hi Ivan: Here is an example of the problem in a brand new...
Charles Thomas Blankenship
-
10 Years Ago
Hi Charles. Your sample helped a lot, since as you stated, it didn't...
Ivan George Borges
-
10 Years Ago
Yep ... works great ... thanks for saving me the time of digging into...
Charles Thomas Blankenship
-
10 Years Ago
You're most welcome. :cool:
Ivan George Borges
-
10 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