﻿<?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  » Deny Action Message</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 02:49:26 GMT</lastBuildDate><ttl>20</ttl><item><title>Deny Action Message</title><link>http://forum.strataframe.net/FindPost5930.aspx</link><description>I created a permission for a button on my form.&amp;nbsp; In the Denied Action section I set the Action to 'message key' and entered the message key.&lt;/P&gt;&lt;P&gt;When the user clicks on the&amp;nbsp;button I can't figure out how to trigger the denied action message.. or can you do this with one condition?&lt;/P&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT size=1&gt;&lt;FONT color=#0000ff&gt;If&lt;/FONT&gt; SecurityBasics.CurrentUser.GetPermission(&lt;FONT color=#800000&gt;"save_Layout"&lt;/FONT&gt;).Action = PermissionAction.Grant&amp;nbsp;The&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size=1&gt;Do stuff....&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color=#111111 size=1&gt;else&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color=#111111 size=1&gt;Show Denied Message.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color=#111111 size=1&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color=#111111 size=1&gt;Thanks&lt;BR&gt;Tim&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color=#0000ff size=1&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size=1&gt;&lt;FONT color=#0000ff&gt;&lt;/FONT&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size=1&gt;&lt;FONT color=#0000ff&gt;&amp;nbsp;&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;</description><pubDate>Thu, 18 Jan 2007 10:44:44 GMT</pubDate><dc:creator>Tim Dol</dc:creator></item><item><title>RE: Deny Action Message</title><link>http://forum.strataframe.net/FindPost5932.aspx</link><description>Since you are testing on this manually you will need to just call the denied message manually as well.&amp;nbsp; The messages are automatically displayed when they are associated with a form property, for example.&amp;nbsp; When you test manually you are just getting the action of the permission but the message it not automatically launched. &lt;/P&gt;&lt;P&gt;Just call the ShowMessageByKey() manually to display your denied message.</description><pubDate>Thu, 18 Jan 2007 10:44:44 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item></channel></rss>