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

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

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

jleroux@apache.org
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>