﻿<?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  » Web App GetPermission() is always PermissionAction.Grant</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Sun, 24 May 2026 21:55:33 GMT</lastBuildDate><ttl>20</ttl><item><title>Web App GetPermission() is always PermissionAction.Grant</title><link>http://forum.strataframe.net/FindPost22748.aspx</link><description>I'm working on a web app that uses the same RBS as a windows app I'm also working on.&amp;nbsp; The web login seems to work fine using SetLoggedInUser() and the CurrentUser is then&amp;nbsp;set to what I would expect.&amp;nbsp; When I use CurrentUser.GetPermission(), it always returns PermissionAction.Grant.&amp;nbsp; This happens if the user was granted the specified permission, the specified premission is denied or the specified premission doesn't even exist.&amp;nbsp; I have IsWebEnvironment=true and DefaultPermissionAction set to Deny in Global.asax.&amp;nbsp; This is working fine for me in the windows app.&amp;nbsp; Any ideas what I'm doing wrong on the web side?&amp;nbsp; Thanks!</description><pubDate>Fri, 17 Apr 2009 08:58:49 GMT</pubDate><dc:creator>Chris Diesel</dc:creator></item><item><title>RE: Web App GetPermission() is always PermissionAction.Grant</title><link>http://forum.strataframe.net/FindPost22751.aspx</link><description>That is a head-scratcher as there should not be any difference.&amp;nbsp; It could be the whole "have to run VS twice is an assembly is already loaded in teh AppDomain" issue.&amp;nbsp; .NET design-time likes to hold on to assemblies in the AppDomain so when you run your application the assemblies don't get reloaded into the run-time AppDomain...casuing some craziness at times.</description><pubDate>Fri, 17 Apr 2009 08:58:49 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Web App GetPermission() is always PermissionAction.Grant</title><link>http://forum.strataframe.net/FindPost22750.aspx</link><description>Never mind.&amp;nbsp; I gave up yesterday.&amp;nbsp; Reopened the project this morning is it worked fine. ?:crazy:?</description><pubDate>Fri, 17 Apr 2009 08:20:48 GMT</pubDate><dc:creator>Chris Diesel</dc:creator></item></channel></rss>