Author: jleroux
Date: Sat Oct 13 06:37:01 2007
New Revision: 584400
URL:
http://svn.apache.org/viewvc?rev=584400&view=revLog:
A patch from Adrian Crum "Main navigation won't display links for apps when user has only _ADMIN permission" (
https://issues.apache.org/jira/browse/OFBIZ-1241) - OFBIZ-1241
Modified:
ofbiz/trunk/framework/common/webcommon/includes/appbar.ftl
Modified: ofbiz/trunk/framework/common/webcommon/includes/appbar.ftl
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/common/webcommon/includes/appbar.ftl?rev=584400&r1=584399&r2=584400&view=diff==============================================================================
--- ofbiz/trunk/framework/common/webcommon/includes/appbar.ftl (original)
+++ ofbiz/trunk/framework/common/webcommon/includes/appbar.ftl Sat Oct 13 06:37:01 2007
@@ -28,12 +28,12 @@
<ul>
<#list displayApps as display>
<#assign thisApp = display.getContextRoot()>
- <#assign permission = true>
+ <#assign permission = false>
<#assign selected = false>
<#assign permissions = display.getBasePermission()>
<#list permissions as perm>
- <#if (perm != "NONE" && !security.hasEntityPermission(perm, "_VIEW", session))>
- <#assign permission = false>
+ <#if (perm == "NONE" || security.hasEntityPermission(perm, "_VIEW", session) || security.hasEntityPermission(perm, "_ADMIN", session))>
+ <#assign permission = true>
</#if>
</#list>
<#if permission == true>