﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum » StrataFrame Application Framework - V1 » Role Based Security  » Form Level security</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Tue, 09 Jun 2026 18:04:45 GMT</lastBuildDate><ttl>20</ttl><item><title>Form Level security</title><link>http://forum.strataframe.net/FindPost4595.aspx</link><description>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). &lt;/P&gt;&lt;P&gt;I&amp;nbsp;have a user named testuser;have a role called test rolehave a persmision called SalesPerson it does not allow read only&lt;/P&gt;&lt;P&gt;I have the test role DENIED for this permision. &lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;&lt;IMG src="http://forum.strataframe.net/Uploads/Images/a6927b74-32e4-4e87-876a-af7b.png"&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG src="http://forum.strataframe.net/Uploads/Images/1138c7f6-4a00-4d0a-9747-e61b.png"&gt;</description><pubDate>Fri, 17 Nov 2006 13:55:53 GMT</pubDate><dc:creator>Paul Chase</dc:creator></item><item><title>RE: Form Level security</title><link>http://forum.strataframe.net/FindPost4615.aspx</link><description>Well, I am glad that you got it going :)</description><pubDate>Fri, 17 Nov 2006 13:55:53 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Form Level security</title><link>http://forum.strataframe.net/FindPost4614.aspx</link><description>Ben,&lt;/P&gt;&lt;P&gt;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&amp;nbsp; whatever reason he was still assigned to the manager role&amp;nbsp;on the local data and thus had access to the salesperson form. Redploying using DDT did not seem to change this&amp;nbsp;on the local security&amp;nbsp;tables. To verify I added a new user and redployed and the new&amp;nbsp;user did exist in the local tables.&amp;nbsp;I&amp;nbsp;ended up droppping the local table&amp;nbsp;and redeploying and everything works as advertised. &lt;/P&gt;&lt;P&gt;P</description><pubDate>Fri, 17 Nov 2006 13:44:00 GMT</pubDate><dc:creator>Paul Chase</dc:creator></item><item><title>RE: Form Level security</title><link>http://forum.strataframe.net/FindPost4605.aspx</link><description>I think im on to it..</description><pubDate>Fri, 17 Nov 2006 13:27:13 GMT</pubDate><dc:creator>Paul Chase</dc:creator></item><item><title>RE: Form Level security</title><link>http://forum.strataframe.net/FindPost4602.aspx</link><description>Never mind it is&lt;/P&gt;&lt;FONT size=2&gt;&lt;P&gt;Console.WriteLine(SecurityBasics.CurrentUser.GetPermission(&lt;/FONT&gt;&lt;FONT color=#800000 size=2&gt;"Salesperson"&lt;/FONT&gt;&lt;FONT size=2&gt;).Action)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size=2&gt;and I get a grant permision&lt;/P&gt;&lt;/FONT&gt;</description><pubDate>Fri, 17 Nov 2006 13:07:24 GMT</pubDate><dc:creator>Paul Chase</dc:creator></item><item><title>RE: Form Level security</title><link>http://forum.strataframe.net/FindPost4601.aspx</link><description>Oh, sorry...&lt;/P&gt;&lt;P&gt;MicroFour.StrataFrame.Security.SecurityBasics.CurrentUser.GetPermission("Salesperson")&lt;/P&gt;&lt;P&gt;Forgot the SecurityBasics class...</description><pubDate>Fri, 17 Nov 2006 13:04:31 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item><item><title>RE: Form Level security</title><link>http://forum.strataframe.net/FindPost4600.aspx</link><description>Ben,&lt;/P&gt;&lt;P&gt;I am getting an error that current user is not a member of security&lt;/P&gt;&lt;P&gt;console.write(MicroFour.StrataFrame.Security.CurrentUser.GetPermission("Salesperson"))</description><pubDate>Fri, 17 Nov 2006 12:56:58 GMT</pubDate><dc:creator>Paul Chase</dc:creator></item><item><title>RE: Form Level security</title><link>http://forum.strataframe.net/FindPost4598.aspx</link><description>Access to a form is only checked when the form is shown.&amp;nbsp; 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.&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;Let's start by checking the second option.&amp;nbsp; 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.&amp;nbsp; It will return a PermissionInfo object that will contain the action to take.</description><pubDate>Fri, 17 Nov 2006 12:46:00 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item></channel></rss>