Slight problem with SecurityUser accessing Security Editor


Author
Message
Charles Thomas Blankenship...
Charles Thomas Blankenship
StrataFrame User (448 reputation)StrataFrame User (448 reputation)StrataFrame User (448 reputation)StrataFrame User (448 reputation)StrataFrame User (448 reputation)StrataFrame User (448 reputation)StrataFrame User (448 reputation)StrataFrame User (448 reputation)StrataFrame User (448 reputation)
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
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Threaded View
Threaded View
Ivan George Borges - 10 Years Ago
Ivan George Borges - 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...
                                 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...
                                         You're most welcome. :cool:
Ivan George Borges - 10 Years Ago

Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search