Author: jleroux
Date: Sun Jan 11 20:43:15 2015
New Revision: 1650967

URL: http://svn.apache.org/r1650967
Log:
A patch from Pierre Smits for "Tasks menu item should only be visible to 
persons with appropriate rights" 
https://issues.apache.org/jira/browse/OFBIZ-5833

Currently the menu item Tasks (and the subsequent overview) is visibe to all 
persons having basic access to the application.
However, persons with assigned tasks can view these through the My Tasks 
options and project managers of assigned projects can view the tasks via the 
project.

jleroux: this makes sense to me, else what for "My Tasks" would be?

Modified:
    ofbiz/trunk/specialpurpose/projectmgr/widget/ProjectMenus.xml

Modified: ofbiz/trunk/specialpurpose/projectmgr/widget/ProjectMenus.xml
URL: 
http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/projectmgr/widget/ProjectMenus.xml?rev=1650967&r1=1650966&r2=1650967&view=diff
==============================================================================
--- ofbiz/trunk/specialpurpose/projectmgr/widget/ProjectMenus.xml (original)
+++ ofbiz/trunk/specialpurpose/projectmgr/widget/ProjectMenus.xml Sun Jan 11 
20:43:15 2015
@@ -25,7 +25,12 @@
         <menu-item name="mytasks" 
title="${uiLabelMap.WorkEffortMyTasks}"><link target="MyTasks"/></menu-item>
         <menu-item name="mytime" 
title="${uiLabelMap.WorkEffortTimesheetMyTime}"><link 
target="MyTimesheet"/></menu-item>
         <menu-item name="projects" 
title="${uiLabelMap.WorkEffortProjects}"><link 
target="FindProject"/></menu-item>
-        <menu-item name="task" title="${uiLabelMap.ProjectMgrTasks}"><link 
target="FindTask"/></menu-item>
+        <menu-item name="task" title="${uiLabelMap.ProjectMgrTasks}">
+            <condition>
+                <if-has-permission permission="PROJECTMGR_ADMIN"/>
+            </condition>
+            <link target="FindTask"/>
+        </menu-item>
         <menu-item name="resources" title="${uiLabelMap.ProjectMgrResources}">
             <condition>
                 <if-has-permission permission="PROJECTMGR_ADMIN"/>


Reply via email to