Security Editor does not open


Author
Message
Sachin Saxena
Sachin Saxena
StrataFrame Beginner (15 reputation)StrataFrame Beginner (15 reputation)StrataFrame Beginner (15 reputation)StrataFrame Beginner (15 reputation)StrataFrame Beginner (15 reputation)StrataFrame Beginner (15 reputation)StrataFrame Beginner (15 reputation)StrataFrame Beginner (15 reputation)StrataFrame Beginner (15 reputation)
Group: Forum Members
Posts: 7, Visits: 23
Hi,

I created an application with various forms and I created users, permission and assign permission to each user.

Everything works fine besides it that whenever I click on "SecurityEditor" button in my application it show me "Access Denied" pop up even user is autorized to open the security editor.

1. if (SecurityBasics.CurrentUser.GetPermission("Secure").Action == PermissionAction.Grant){

2. loForm = new SecurityDialog();

3. loForm.MdiParent = this;

4. loForm.Show();

5. }

6. else

7. {

8. MicroFour.StrataFrame.Messaging.MessageForm.ShowMessage("Access Denied", "Access 9. has been denied to the security editor.", ""

10. MicroFour.StrataFrame.Messaging.MessageFunction.OK,

11. MicroFour.StrataFrame.Messaging.MessagingIcon.Forbidden,

12. MicroFour.StrataFrame.Messaging.MessagingSounds.Warning);

13. }

Here debugger crossed the line 1 and whenever it reaches the line no 4 it shows the pop up "Acccess Denied". Why?

I could not understand it. Can you help me to solve this problem?

Replies
Ivan George Borges
Ivan George Borges
Strategic Support Team Member (4.9K reputation)Strategic Support Team Member (4.9K reputation)Strategic Support Team Member (4.9K reputation)Strategic Support Team Member (4.9K reputation)Strategic Support Team Member (4.9K reputation)Strategic Support Team Member (4.9K reputation)Strategic Support Team Member (4.9K reputation)Strategic Support Team Member (4.9K reputation)Strategic Support Team Member (4.9K reputation)
Group: StrataFrame MVPs
Posts: 1.9K, Visits: 21K
Hey Ben.

Never thought of the ViewSecurityKey for the SecurityDialog! w00t  I thought the user needed admin priviledges to get into it.

Thanks for the tip.

Sachin Saxena
Sachin Saxena
StrataFrame Beginner (15 reputation)StrataFrame Beginner (15 reputation)StrataFrame Beginner (15 reputation)StrataFrame Beginner (15 reputation)StrataFrame Beginner (15 reputation)StrataFrame Beginner (15 reputation)StrataFrame Beginner (15 reputation)StrataFrame Beginner (15 reputation)StrataFrame Beginner (15 reputation)
Group: Forum Members
Posts: 7, Visits: 23
Hi Ben and Ivan,

Thanks for the key updation. I could not get in to the documentation. Currently me and my team is working to evaluate the StrataFrame for my client.

Thanks for your reply. Smile

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search