Commit 8b95136b authored by Jérome Perrin's avatar Jérome Perrin

Clear the security cache when changing an assignment; this is required to make...

Clear the security cache when changing an assignment; this is required to make authentication system is up to date

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@15948 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent e3334ea6
......@@ -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 @@ if person_security_script is not None:\n
<tuple>
<string>state_change</string>
<string>_getattr_</string>
<string>portal</string>
<string>_getitem_</string>
<string>assignment_object</string>
<string>person_object</string>
......
171
\ No newline at end of file
172
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment