From c8ce340884816fa4eaca0986e465e9cd547045f9 Mon Sep 17 00:00:00 2001
From: Fabien Morin <fabien@nexedi.com>
Date: Tue, 28 Sep 2010 14:33:41 +0000
Subject: [PATCH] Add Auditor proxy role. In this way, Anonymous users are able
 to send notification message through proxy_roles scripts. This should not be
 a problems as the related interaction is trigged on '_setFile',
 '_setTextContent', so if you are able to modify the content, no problem to
 have Auditor role.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@38731 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 .../scripts/updateContentMd5.xml                    | 13 +++++++++----
 bt5/erp5_base/bt/revision                           |  2 +-
 2 files changed, 10 insertions(+), 5 deletions(-)

diff --git a/bt5/erp5_base/WorkflowTemplateItem/portal_workflow/document_conversion_interaction_workflow/scripts/updateContentMd5.xml b/bt5/erp5_base/WorkflowTemplateItem/portal_workflow/document_conversion_interaction_workflow/scripts/updateContentMd5.xml
index 9748dd2f95..128f6ce426 100644
--- a/bt5/erp5_base/WorkflowTemplateItem/portal_workflow/document_conversion_interaction_workflow/scripts/updateContentMd5.xml
+++ b/bt5/erp5_base/WorkflowTemplateItem/portal_workflow/document_conversion_interaction_workflow/scripts/updateContentMd5.xml
@@ -2,10 +2,7 @@
 <ZopeData>
   <record id="1" aka="AAAAAAAAAAE=">
     <pickle>
-      <tuple>
-        <global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
-        <tuple/>
-      </tuple>
+      <global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
     </pickle>
     <pickle>
       <dictionary>
@@ -69,6 +66,14 @@ document.updateContentMd5()\n
             <key> <string>_params</string> </key>
             <value> <string>state_change</string> </value>
         </item>
+        <item>
+            <key> <string>_proxy_roles</string> </key>
+            <value>
+              <tuple>
+                <string>Auditor</string>
+              </tuple>
+            </value>
+        </item>
         <item>
             <key> <string>errors</string> </key>
             <value>
diff --git a/bt5/erp5_base/bt/revision b/bt5/erp5_base/bt/revision
index 24888beeaa..c73598001b 100644
--- a/bt5/erp5_base/bt/revision
+++ b/bt5/erp5_base/bt/revision
@@ -1 +1 @@
-862
\ No newline at end of file
+863
\ No newline at end of file
-- 
2.30.9