[Erp5-report] r15948 - in /erp5/trunk/bt5/erp5_base: WorkflowTemplateItem/portal_workflow/a...

nobody at svn.erp5.org nobody at svn.erp5.org
Thu Aug 30 11:15:55 CEST 2007


Author: jerome
Date: Thu Aug 30 11:15:55 2007
New Revision: 15948

URL: http://svn.erp5.org?rev=15948&view=rev
Log:
Clear the security cache when changing an assignment; this is required to make authentication system is up to date

Modified:
    erp5/trunk/bt5/erp5_base/WorkflowTemplateItem/portal_workflow/assignment_workflow/scripts/Assignment_updateUserSecurityGroup.xml
    erp5/trunk/bt5/erp5_base/bt/revision

Modified: erp5/trunk/bt5/erp5_base/WorkflowTemplateItem/portal_workflow/assignment_workflow/scripts/Assignment_updateUserSecurityGroup.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_base/WorkflowTemplateItem/portal_workflow/assignment_workflow/scripts/Assignment_updateUserSecurityGroup.xml?rev=15948&r1=15947&r2=15948&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_base/WorkflowTemplateItem/portal_workflow/assignment_workflow/scripts/Assignment_updateUserSecurityGroup.xml (original)
+++ erp5/trunk/bt5/erp5_base/WorkflowTemplateItem/portal_workflow/assignment_workflow/scripts/Assignment_updateUserSecurityGroup.xml Thu Aug 30 11:15:55 2007
@@ -68,8 +68,13 @@
         </item>
         <item>
             <key> <string>_body</string> </key>
-            <value> <string># Using PAS removes the need of this script\n
-if state_change.getPortal().acl_users.meta_type == \'Pluggable Auth Service\':\n
+            <value> <string>portal = state_change.getPortal()\n
+\n
+# invalidate the cache for security\n
+portal.portal_caches.clearCache(cache_factory_list=(\'erp5_content_short\',))\n
+\n
+# Using PAS removes the need of anything else in this script\n
+if portal.acl_users.meta_type == \'Pluggable Auth Service\':\n
   return\n
 \n
 # Get the assignment object and its parent\n
@@ -137,6 +142,7 @@
                           <tuple>
                             <string>state_change</string>
                             <string>_getattr_</string>
+                            <string>portal</string>
                             <string>_getitem_</string>
                             <string>assignment_object</string>
                             <string>person_object</string>

Modified: erp5/trunk/bt5/erp5_base/bt/revision
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_base/bt/revision?rev=15948&r1=15947&r2=15948&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_base/bt/revision (original)
+++ erp5/trunk/bt5/erp5_base/bt/revision Thu Aug 30 11:15:55 2007
@@ -1,1 +1,1 @@
-171
+172




More information about the Erp5-report mailing list