You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by jl...@apache.org on 2007/10/13 19:57:40 UTC

svn commit: r584437 - /ofbiz/branches/release4.0/framework/common/webcommon/includes/appbar.ftl

Author: jleroux
Date: Sat Oct 13 10:57:39 2007
New Revision: 584437

URL: http://svn.apache.org/viewvc?rev=584437&view=rev
Log:
Applied fix from trunk for revision: 584400

Modified:
    ofbiz/branches/release4.0/framework/common/webcommon/includes/appbar.ftl

Modified: ofbiz/branches/release4.0/framework/common/webcommon/includes/appbar.ftl
URL: http://svn.apache.org/viewvc/ofbiz/branches/release4.0/framework/common/webcommon/includes/appbar.ftl?rev=584437&r1=584436&r2=584437&view=diff
==============================================================================
--- ofbiz/branches/release4.0/framework/common/webcommon/includes/appbar.ftl (original)
+++ ofbiz/branches/release4.0/framework/common/webcommon/includes/appbar.ftl Sat Oct 13 10:57:39 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>