From f60a6399cf36dd4968b0865a4fe49ff8a4606210 Mon Sep 17 00:00:00 2001
From: Ivan Tyagov <ivan@nexedi.com>
Date: Tue, 20 Feb 2007 07:19:37 +0000
Subject: [PATCH] Do not use current context to get 'acl_user' folder type but
 take it from portal's  user folder instead.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@12898 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 .../scripts/Assignment_updateUserSecurityGroup.xml        | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/bt5/erp5_base/WorkflowTemplateItem/portal_workflow/assignment_workflow/scripts/Assignment_updateUserSecurityGroup.xml b/bt5/erp5_base/WorkflowTemplateItem/portal_workflow/assignment_workflow/scripts/Assignment_updateUserSecurityGroup.xml
index ed1a2008a7..1720aa418f 100644
--- a/bt5/erp5_base/WorkflowTemplateItem/portal_workflow/assignment_workflow/scripts/Assignment_updateUserSecurityGroup.xml
+++ b/bt5/erp5_base/WorkflowTemplateItem/portal_workflow/assignment_workflow/scripts/Assignment_updateUserSecurityGroup.xml
@@ -69,7 +69,7 @@
         <item>
             <key> <string>_body</string> </key>
             <value> <string># Using PAS removes the need of this script\n
-if state_change.object.acl_users.meta_type == \'Pluggable Auth Service\':\n
+if state_change.getPortal().acl_users.meta_type == \'Pluggable Auth Service\':\n
   return\n
 \n
 # Get the assignment object and its parent\n
@@ -105,6 +105,12 @@ if person_security_script is not None:\n
             <key> <string>_params</string> </key>
             <value> <string>state_change</string> </value>
         </item>
+        <item>
+            <key> <string>_proxy_roles</string> </key>
+            <value>
+              <tuple/>
+            </value>
+        </item>
         <item>
             <key> <string>errors</string> </key>
             <value>
-- 
2.30.9