From 4c79cba2d1b93bf249646573104b6e92339dd243 Mon Sep 17 00:00:00 2001
From: Romain Courteaud <romain@nexedi.com>
Date: Wed, 19 Mar 2008 09:39:47 +0000
Subject: [PATCH] Update task_workflow security permissions.

Assignee's permissions still seem wrong, as this user should be able to modify the Task (this is Assignee role definition).

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@20019 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 .../task_workflow/states/cancelled.xml                |  2 --
 .../task_workflow/states/confirmed.xml                | 11 +++--------
 .../portal_workflow/task_workflow/states/draft.xml    |  2 ++
 .../portal_workflow/task_workflow/states/ordered.xml  |  2 ++
 .../portal_workflow/task_workflow/states/planned.xml  |  4 ++--
 bt5/erp5_project/bt/revision                          |  2 +-
 6 files changed, 10 insertions(+), 13 deletions(-)

diff --git a/bt5/erp5_project/WorkflowTemplateItem/portal_workflow/task_workflow/states/cancelled.xml b/bt5/erp5_project/WorkflowTemplateItem/portal_workflow/task_workflow/states/cancelled.xml
index b0972334dd..b7df4e6012 100644
--- a/bt5/erp5_project/WorkflowTemplateItem/portal_workflow/task_workflow/states/cancelled.xml
+++ b/bt5/erp5_project/WorkflowTemplateItem/portal_workflow/task_workflow/states/cancelled.xml
@@ -76,7 +76,6 @@
                         <string>Assignor</string>
                         <string>Associate</string>
                         <string>Manager</string>
-                        <string>Owner</string>
                       </tuple>
                     </value>
                 </item>
@@ -105,7 +104,6 @@
                         <string>Assignor</string>
                         <string>Associate</string>
                         <string>Manager</string>
-                        <string>Owner</string>
                       </tuple>
                     </value>
                 </item>
diff --git a/bt5/erp5_project/WorkflowTemplateItem/portal_workflow/task_workflow/states/confirmed.xml b/bt5/erp5_project/WorkflowTemplateItem/portal_workflow/task_workflow/states/confirmed.xml
index 9b34604ec7..c8edf1e1b8 100644
--- a/bt5/erp5_project/WorkflowTemplateItem/portal_workflow/task_workflow/states/confirmed.xml
+++ b/bt5/erp5_project/WorkflowTemplateItem/portal_workflow/task_workflow/states/confirmed.xml
@@ -57,17 +57,14 @@
   <record id="2" aka="AAAAAAAAAAI=">
     <pickle>
       <tuple>
-        <tuple>
-          <string>Persistence</string>
-          <string>PersistentMapping</string>
-        </tuple>
-        <none/>
+        <global name="PersistentMapping" module="Persistence.mapping"/>
+        <tuple/>
       </tuple>
     </pickle>
     <pickle>
       <dictionary>
         <item>
-            <key> <string>_container</string> </key>
+            <key> <string>data</string> </key>
             <value>
               <dictionary>
                 <item>
@@ -79,7 +76,6 @@
                         <string>Associate</string>
                         <string>Auditor</string>
                         <string>Manager</string>
-                        <string>Owner</string>
                       </tuple>
                     </value>
                 </item>
@@ -110,7 +106,6 @@
                         <string>Associate</string>
                         <string>Auditor</string>
                         <string>Manager</string>
-                        <string>Owner</string>
                       </tuple>
                     </value>
                 </item>
diff --git a/bt5/erp5_project/WorkflowTemplateItem/portal_workflow/task_workflow/states/draft.xml b/bt5/erp5_project/WorkflowTemplateItem/portal_workflow/task_workflow/states/draft.xml
index 3be0fdda9b..4f0d1c0328 100644
--- a/bt5/erp5_project/WorkflowTemplateItem/portal_workflow/task_workflow/states/draft.xml
+++ b/bt5/erp5_project/WorkflowTemplateItem/portal_workflow/task_workflow/states/draft.xml
@@ -97,6 +97,7 @@
                     <value>
                       <tuple>
                         <string>Assignor</string>
+                        <string>Associate</string>
                         <string>Manager</string>
                         <string>Owner</string>
                       </tuple>
@@ -107,6 +108,7 @@
                     <value>
                       <tuple>
                         <string>Assignor</string>
+                        <string>Associate</string>
                         <string>Manager</string>
                         <string>Owner</string>
                       </tuple>
diff --git a/bt5/erp5_project/WorkflowTemplateItem/portal_workflow/task_workflow/states/ordered.xml b/bt5/erp5_project/WorkflowTemplateItem/portal_workflow/task_workflow/states/ordered.xml
index 2242d223a3..1e4518f37c 100644
--- a/bt5/erp5_project/WorkflowTemplateItem/portal_workflow/task_workflow/states/ordered.xml
+++ b/bt5/erp5_project/WorkflowTemplateItem/portal_workflow/task_workflow/states/ordered.xml
@@ -92,6 +92,7 @@
                     <value>
                       <tuple>
                         <string>Assignor</string>
+                        <string>Associate</string>
                         <string>Manager</string>
                       </tuple>
                     </value>
@@ -101,6 +102,7 @@
                     <value>
                       <tuple>
                         <string>Assignor</string>
+                        <string>Associate</string>
                         <string>Manager</string>
                       </tuple>
                     </value>
diff --git a/bt5/erp5_project/WorkflowTemplateItem/portal_workflow/task_workflow/states/planned.xml b/bt5/erp5_project/WorkflowTemplateItem/portal_workflow/task_workflow/states/planned.xml
index 9c0545196b..2f8f4ccdda 100644
--- a/bt5/erp5_project/WorkflowTemplateItem/portal_workflow/task_workflow/states/planned.xml
+++ b/bt5/erp5_project/WorkflowTemplateItem/portal_workflow/task_workflow/states/planned.xml
@@ -86,7 +86,6 @@
                         <string>Associate</string>
                         <string>Auditor</string>
                         <string>Manager</string>
-                        <string>Owner</string>
                       </tuple>
                     </value>
                 </item>
@@ -95,6 +94,7 @@
                     <value>
                       <tuple>
                         <string>Assignor</string>
+                        <string>Associate</string>
                         <string>Manager</string>
                       </tuple>
                     </value>
@@ -104,6 +104,7 @@
                     <value>
                       <tuple>
                         <string>Assignor</string>
+                        <string>Associate</string>
                         <string>Manager</string>
                       </tuple>
                     </value>
@@ -127,7 +128,6 @@
                         <string>Associate</string>
                         <string>Auditor</string>
                         <string>Manager</string>
-                        <string>Owner</string>
                       </tuple>
                     </value>
                 </item>
diff --git a/bt5/erp5_project/bt/revision b/bt5/erp5_project/bt/revision
index 2738497468..ce163e7b6b 100644
--- a/bt5/erp5_project/bt/revision
+++ b/bt5/erp5_project/bt/revision
@@ -1 +1 @@
-439
\ No newline at end of file
+440
\ No newline at end of file
-- 
2.30.9