From 3007ef3cd2ccb5bfcbc14a58b4df233afe6ff36e Mon Sep 17 00:00:00 2001 From: Hans Bakker Date: Tue, 21 Oct 2008 06:42:47 +0000 Subject: [PATCH] remove the links on the projectforms shown to the customer git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@706539 13f79535-47bb-0310-9956-ffa450edef68 --- mypage/widget/MyPageForms.xml | 7 +++++ mypage/widget/MyPageScreens.xml | 31 +++++++++++++++++-- .../WEB-INF/actions/GanttChart.groovy | 6 +++- projectmgr/widget/ProjectScreens.xml | 15 ++------- 4 files changed, 43 insertions(+), 16 deletions(-) diff --git a/mypage/widget/MyPageForms.xml b/mypage/widget/MyPageForms.xml index c5d233af6..ad6440ab7 100644 --- a/mypage/widget/MyPageForms.xml +++ b/mypage/widget/MyPageForms.xml @@ -283,4 +283,11 @@ under the License. +
+ +
+
+ +
+ \ No newline at end of file diff --git a/mypage/widget/MyPageScreens.xml b/mypage/widget/MyPageScreens.xml index 77e730a2a..82807c22e 100644 --- a/mypage/widget/MyPageScreens.xml +++ b/mypage/widget/MyPageScreens.xml @@ -680,13 +680,38 @@ under the License. - +
+ + + + + + + + + + + + + +
- +
+ + + + + + + + + + + +
- diff --git a/projectmgr/webapp/projectmgr/WEB-INF/actions/GanttChart.groovy b/projectmgr/webapp/projectmgr/WEB-INF/actions/GanttChart.groovy index 994efe9f8..684680da4 100644 --- a/projectmgr/webapp/projectmgr/WEB-INF/actions/GanttChart.groovy +++ b/projectmgr/webapp/projectmgr/WEB-INF/actions/GanttChart.groovy @@ -91,7 +91,11 @@ if (phases){ }else{ taskInfo.completion = 0; } - taskInfo.url = "/projectmgr/control/taskView?workEffortId="+task.workEffortId; + if (security.hasEntityPermission("PROJECTMGR", "_READ", session) || security.hasEntityPermission("PROJECTMGR", "_ADMIN", session)) { + taskInfo.url = "/projectmgr/control/taskView?workEffortId="+task.workEffortId; + } else { + taskInfo.url = ""; + } resultTaskResource = dispatcher.runSync("getTasksByParties", [userLogin : userLogin , workEffortId : task.workEffortId]); taskParties = resultTaskResource.taskParties; resource = ""; diff --git a/projectmgr/widget/ProjectScreens.xml b/projectmgr/widget/ProjectScreens.xml index 26754398e..d82d9a6ea 100644 --- a/projectmgr/widget/ProjectScreens.xml +++ b/projectmgr/widget/ProjectScreens.xml @@ -553,18 +553,9 @@ under the License. - - - - - -
- - - -
-
+ + +