You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by ha...@apache.org on 2008/11/12 09:23:41 UTC

svn commit: r713313 - /ofbiz/trunk/specialpurpose/mypage/widget/MyPageMenus.xml

Author: hansbak
Date: Wed Nov 12 00:23:40 2008
New Revision: 713313

URL: http://svn.apache.org/viewvc?rev=713313&view=rev
Log:
depending on security only show relavant buttons

Modified:
    ofbiz/trunk/specialpurpose/mypage/widget/MyPageMenus.xml

Modified: ofbiz/trunk/specialpurpose/mypage/widget/MyPageMenus.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/mypage/widget/MyPageMenus.xml?rev=713313&r1=713312&r2=713313&view=diff
==============================================================================
--- ofbiz/trunk/specialpurpose/mypage/widget/MyPageMenus.xml (original)
+++ ofbiz/trunk/specialpurpose/mypage/widget/MyPageMenus.xml Wed Nov 12 00:23:40 2008
@@ -47,6 +47,10 @@
                 <and>
                     <not><if-empty field-name="userLogin"/></not>
                     <if-compare field-name="preferences.userPrefMap.otherCommunications" operator="not-equals" value="Y"/>
+                    <or>
+                        <if-has-permission permission="MYPAGE_EMPLOYEE"/>
+                        <if-has-permission permission="MYPAGE_EMPL-NOEMAIL"/>
+                    </or>
                 </and>
             </condition>
             <link target="otherCommunications?donePage=otherCommunications"/>
@@ -56,6 +60,10 @@
                 <and>
                     <not><if-empty field-name="userLogin"/></not>
                     <if-compare field-name="preferences.userPrefMap.myCompanyComms" operator="not-equals" value="Y"/>
+                    <or>
+                        <if-has-permission permission="MYPAGE_EMPLOYEE"/>
+                        <if-has-permission permission="MYPAGE_EMPL-NOEMAIL"/>
+                    </or>
                 </and>
             </condition>
             <link target="myCompanyComms"/>
@@ -65,6 +73,10 @@
                 <and>
                     <not><if-empty field-name="userLogin"/></not>
                     <if-compare field-name="preferences.userPrefMap.myTimesheet" operator="not-equals" value="Y"/>
+                    <or>
+                        <if-has-permission permission="MYPAGE_EMPLOYEE"/>
+                        <if-has-permission permission="MYPAGE_EMPL-NOEMAIL"/>
+                    </or>
                 </and>
             </condition>
             <link target="myTimesheet?donePage=myTimeSheet"/>
@@ -74,6 +86,10 @@
                 <and>
                     <not><if-empty field-name="userLogin"/></not>
                     <if-compare field-name="preferences.userPrefMap.myTasks" operator="not-equals" value="Y"/>
+                    <or>
+                        <if-has-permission permission="MYPAGE_EMPLOYEE"/>
+                        <if-has-permission permission="MYPAGE_EMPL-NOEMAIL"/>
+                    </or>
                 </and>
             </condition>
             <link target="myTasks?donePage=myTasks"/>