﻿<?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  » Security Editor does not open</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Thu, 23 Apr 2026 00:25:14 GMT</lastBuildDate><ttl>20</ttl><item><title>Security Editor does not open</title><link>http://forum.strataframe.net/FindPost13122.aspx</link><description>Hi,&lt;/P&gt;&lt;P&gt;I created an application with various forms and I created users, permission and assign permission to each user.&lt;/P&gt;&lt;P&gt;Everything works fine besides it&amp;nbsp;that&amp;nbsp;whenever I click on "SecurityEditor" button in my application&amp;nbsp;it show me "Access Denied"&amp;nbsp;pop up&amp;nbsp;even user is autorized to&amp;nbsp;open the security editor.&lt;/P&gt;&lt;FONT color=#0000ff size=2&gt;&lt;P dir=ltr style="MARGIN-RIGHT: 0px"&gt;1. if&lt;/FONT&gt;&lt;FONT color=#000000 size=2&gt; (&lt;/FONT&gt;&lt;FONT color=#008080 size=2&gt;SecurityBasics&lt;/FONT&gt;&lt;FONT color=#000000 size=2&gt;.CurrentUser.GetPermission(&lt;/FONT&gt;&lt;FONT color=#800000 size=2&gt;"Secure"&lt;/FONT&gt;&lt;FONT color=#000000 size=2&gt;).Action == &lt;/FONT&gt;&lt;FONT color=#008080 size=2&gt;PermissionAction&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;FONT color=#000000&gt;.Grant)&lt;/FONT&gt;{&lt;/FONT&gt;&lt;/P&gt;&lt;P dir=ltr style="MARGIN-RIGHT: 0px"&gt;&lt;FONT size=2&gt;2. loForm = &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;new&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#008080 size=2&gt;SecurityDialog&lt;/FONT&gt;&lt;FONT size=2&gt;();&lt;/FONT&gt;&lt;/P&gt;&lt;P dir=ltr style="MARGIN-RIGHT: 0px"&gt;&lt;FONT size=2&gt;3. loForm.MdiParent = &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;this&lt;/FONT&gt;&lt;FONT size=2&gt;;&lt;/P&gt;&lt;P dir=ltr style="MARGIN-RIGHT: 0px"&gt;4. loForm.Show();&lt;/P&gt;&lt;P dir=ltr style="MARGIN-RIGHT: 0px"&gt;5. }&lt;/P&gt;&lt;P dir=ltr style="MARGIN-RIGHT: 0px"&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;6. else&lt;/P&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P dir=ltr style="MARGIN-RIGHT: 0px"&gt;7. {&lt;/P&gt;&lt;P dir=ltr style="MARGIN-RIGHT: 0px"&gt;8. MicroFour.StrataFrame.Messaging.&lt;/FONT&gt;&lt;FONT color=#008080 size=2&gt;MessageForm&lt;/FONT&gt;&lt;FONT size=2&gt;.ShowMessage(&lt;/FONT&gt;&lt;FONT color=#800000 size=2&gt;"Access Denied"&lt;/FONT&gt;&lt;FONT size=2&gt;, &lt;/FONT&gt;&lt;FONT color=#800000 size=2&gt;"Access 9. has been denied to the security editor."&lt;/FONT&gt;&lt;FONT size=2&gt;, &lt;/FONT&gt;&lt;FONT color=#800000 size=2&gt;""&lt;/FONT&gt;&lt;FONT size=2&gt;,&amp;nbsp; &lt;/FONT&gt;&lt;/P&gt;&lt;P dir=ltr style="MARGIN-RIGHT: 0px"&gt;&lt;FONT size=2&gt;10. MicroFour.StrataFrame.Messaging.&lt;/FONT&gt;&lt;FONT color=#008080 size=2&gt;MessageFunction&lt;/FONT&gt;&lt;FONT size=2&gt;.OK, &lt;/FONT&gt;&lt;/P&gt;&lt;P dir=ltr style="MARGIN-RIGHT: 0px"&gt;&lt;FONT size=2&gt;11. MicroFour.StrataFrame.Messaging.&lt;/FONT&gt;&lt;FONT color=#008080 size=2&gt;MessagingIcon&lt;/FONT&gt;&lt;FONT size=2&gt;.Forbidden, &lt;/FONT&gt;&lt;/P&gt;&lt;P dir=ltr style="MARGIN-RIGHT: 0px"&gt;&lt;FONT size=2&gt;12. MicroFour.StrataFrame.Messaging.&lt;/FONT&gt;&lt;FONT color=#008080 size=2&gt;MessagingSounds&lt;/FONT&gt;&lt;FONT size=2&gt;.Warning);&lt;/P&gt;&lt;P dir=ltr style="MARGIN-RIGHT: 0px"&gt;13. }&lt;/P&gt;&lt;/FONT&gt;&lt;P&gt;Here debugger crossed the line 1 and whenever it reaches the line no 4 it shows the pop up "Acccess Denied". Why?&lt;/P&gt;&lt;P&gt;I could not understand it. Can you help me to solve this problem?</description><pubDate>Sun, 23 Dec 2007 22:18:01 GMT</pubDate><dc:creator>Sachin Saxena</dc:creator></item><item><title>RE: Security Editor does not open</title><link>http://forum.strataframe.net/FindPost13156.aspx</link><description>Hi Ben and Ivan,&lt;/P&gt;&lt;P&gt;Thanks for the key updation. I could not get in to the documentation. Currently&amp;nbsp;me and my team&amp;nbsp;is working to evaluate the StrataFrame for my client. &lt;/P&gt;&lt;P&gt;Thanks for your reply. :)</description><pubDate>Sun, 23 Dec 2007 22:18:01 GMT</pubDate><dc:creator>Sachin Saxena</dc:creator></item><item><title>RE: Security Editor does not open</title><link>http://forum.strataframe.net/FindPost13128.aspx</link><description>Hey Ben.&lt;/P&gt;&lt;P&gt;Never thought of the ViewSecurityKey for the SecurityDialog! :w00t:&amp;nbsp; I thought the user needed admin priviledges to get into it.&lt;/P&gt;&lt;P&gt;Thanks for the tip.</description><pubDate>Fri, 21 Dec 2007 09:18:27 GMT</pubDate><dc:creator>Ivan George Borges</dc:creator></item><item><title>RE: Security Editor does not open</title><link>http://forum.strataframe.net/FindPost13126.aspx</link><description>All StrataFrame forms have a field called ViewSecurityKey that is the security key that is checked when the form is shown to see if the user has permission to view the form.&amp;nbsp; We default the ViewSecurityKey of the SecurityDialog to "Security Editor".&amp;nbsp; This allows you to add a permission called "Security Editor" for the permission to get into the form.&amp;nbsp; If you don't want to use that key, then right before you call loForm.Show() (your line #4), you need to call loForm.ViewSecurityKey = "Secure".&amp;nbsp; This will set the security key for the&amp;nbsp;form to the key you want to use rather than the default key for the form.&amp;nbsp; &lt;/P&gt;&lt;P&gt;This also means that you don't have to have the if test to check the security key before showing the form... simply set the security key to the proper key before showing the form and the Show() will check all of the security for you (and show the denied message when the user doesn't have permission to view it).</description><pubDate>Fri, 21 Dec 2007 09:09:19 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item><item><title>RE: Security Editor does not open</title><link>http://forum.strataframe.net/FindPost13123.aspx</link><description>Hi Sachin.&lt;P&gt;Try changing your IF statament to:&lt;/P&gt;&lt;FONT color=#0000ff size=2&gt;&lt;P&gt;If&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;FONT color=#000000&gt; SecurityBasics.CurrentUser.IsAdministrator&lt;/FONT&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;P&gt;Also, have a look at the help file under: &lt;P&gt;"Role-Based Security" / "Defining Security within the Application" / "Programatic Access" / "Security Basics Class" / "Built-In Accounts" -- here you find an explanation for built-in accounts you can set up in the Program.cs, if you need.&lt;P&gt;You may also have a look at the topic:&lt;P&gt;"Role-Based Security" / "Defining Security within the Application" / "Calling the Security Maintenance Dialog" for some more features about it.&lt;P&gt;Hope it helps.</description><pubDate>Fri, 21 Dec 2007 07:53:28 GMT</pubDate><dc:creator>Ivan George Borges</dc:creator></item></channel></rss>