depending on security only show relavant buttons

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@713313 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Hans Bakker
2008-11-12 08:23:40 +00:00
parent 162900c958
commit bbf11fee02
+16
View File
@@ -47,6 +47,10 @@ under the License.
<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 @@ under the License.
<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 @@ under the License.
<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 @@ under the License.
<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"/>