Security Editor does not open


Author
Message
Sachin Saxena
Sachin Saxena
StrataFrame Beginner (13 reputation)StrataFrame Beginner (13 reputation)StrataFrame Beginner (13 reputation)StrataFrame Beginner (13 reputation)StrataFrame Beginner (13 reputation)StrataFrame Beginner (13 reputation)StrataFrame Beginner (13 reputation)StrataFrame Beginner (13 reputation)StrataFrame Beginner (13 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?

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