Commit 1aa9fca2 authored by Jérome Perrin's avatar Jérome Perrin

wip user cache cookie

parent 0aa9220a
......@@ -88,8 +88,11 @@ class ERP5GroupManager(BasePlugin):
if principal.getId() == SUPER_USER:
return ()
user_cache_cookie = self.getPortalObject().getCacheCookie(
'user_group:%s' % principal.getId())
@UnrestrictedMethod
def _getGroupsForPrincipal(user_name, path):
def _getGroupsForPrincipal(user_name, path, user_cache_cookie):
security_category_dict = {} # key is the base_category_list,
# value is the list of fetched categories
security_group_list = []
......@@ -188,7 +191,8 @@ class ERP5GroupManager(BasePlugin):
return _getGroupsForPrincipal(
user_name=principal.getId(),
path=self.getPhysicalPath())
path=self.getPhysicalPath(),
user_cache_cookie=user_cache_cookie)
classImplements( ERP5GroupManager
......
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