StrataFrame Forum
Home      Members   Calendar   Who's On
Welcome Guest ( Login | Register )
      



Form Level securityExpand / Collapse
Author
Message
Posted 11/17/2006 11:15:43 AM


StrataFrame User

StrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame User

Group: StrataFrame Users
Last Login: Today @ 10:02:50 AM
Posts: 366, Visits: 2,435
I am just starting to play around with this and cannot seem to get form level security to work. (I havent tried to secure anything else).

I have a user named testuser;have a role called test rolehave a persmision called SalesPerson it does not allow read only

I have the test role DENIED for this permision.

I set the form view security key to this permission and the test user can still do anything he wants to the on the form. Here are some pictures.. I am not sure where I am going wrong.. Shouldn't be rocket science so most likely it is something stupid.

Post #4595
Posted 11/17/2006 12:46:00 PM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: Yesterday @ 1:09:23 PM
Posts: 2,686, Visits: 1,888
Access to a form is only checked when the form is shown.  So, during the Show() command of the form, the security is checked, and the form is either allowed to show, or a message is shown to the user informing them that the form cannot be shown.

So, there is one of two things happening: 1) the form is being shown in some other way that is not checking security, or 2) the GetPermission() method of the CurrentUser object is returning the wrong value.

Let's start by checking the second option.  Put a break point somewhere after the user has logged into the system, and check the value of MicroFour.StrataFrame.Security.CurrentUser.GetPermission("Salesperson") and see what the return value is of that method.  It will return a PermissionInfo object that will contain the action to take.


www.bungie.net
Post #4598
Posted 11/17/2006 12:56:58 PM


StrataFrame User

StrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame User

Group: StrataFrame Users
Last Login: Today @ 10:02:50 AM
Posts: 366, Visits: 2,435
Ben,

I am getting an error that current user is not a member of security

console.write(MicroFour.StrataFrame.Security.CurrentUser.GetPermission("Salesperson"))

Post #4600
Posted 11/17/2006 1:04:31 PM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: Yesterday @ 1:09:23 PM
Posts: 2,686, Visits: 1,888
Oh, sorry...

MicroFour.StrataFrame.Security.SecurityBasics.CurrentUser.GetPermission("Salesperson")

Forgot the SecurityBasics class...


www.bungie.net
Post #4601
Posted 11/17/2006 1:07:24 PM


StrataFrame User

StrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame User

Group: StrataFrame Users
Last Login: Today @ 10:02:50 AM
Posts: 366, Visits: 2,435
Never mind it is

Console.WriteLine(SecurityBasics.CurrentUser.GetPermission("Salesperson").Action)

and I get a grant permision

Post #4602
Posted 11/17/2006 1:27:13 PM


StrataFrame User

StrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame User

Group: StrataFrame Users
Last Login: Today @ 10:02:50 AM
Posts: 366, Visits: 2,435
I think im on to it..
Post #4605
Posted 11/17/2006 1:44:00 PM


StrataFrame User

StrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame User

Group: StrataFrame Users
Last Login: Today @ 10:02:50 AM
Posts: 366, Visits: 2,435
Ben,

I have it working properly now. I am not sure exactly where it got messed up but I originally assigned the test user to the wrong role. I fixed that and redeployed the data but for  whatever reason he was still assigned to the manager role on the local data and thus had access to the salesperson form. Redploying using DDT did not seem to change this on the local security tables. To verify I added a new user and redployed and the new user did exist in the local tables. I ended up droppping the local table and redeploying and everything works as advertised.

P

Post #4614
Posted 11/17/2006 1:55:53 PM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: Today @ 10:13:07 AM
Posts: 4,799, Visits: 4,768
Well, I am glad that you got it going
Post #4615
« Prev Topic | Next Topic »


Reading This TopicExpand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: Ben Chase, Trent L. Taylor, Steve L. Taylor

PermissionsExpand / Collapse

All times are GMT -6:00, Time now is 11:22am

Powered by InstantForum.NET v4.1.4 © 2008
Execution: 0.125. 9 queries. Compression Enabled.
Site Map - Home - My Account - Forum - About Us - Contact Us - Try It - Buy It

Microsoft, Visual Studio, and the Visual Studio logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries.