Commit 2b56ffe3 authored by Jérome Perrin's avatar Jérome Perrin

Do not use _listAllowedRolesAndUsers from CMFCore.CatalogTool because it might...

Do not use _listAllowedRolesAndUsers from CMFCore.CatalogTool because it might have been monkey patched by NuxUserGroup already.



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@9083 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 3c129031
...@@ -277,7 +277,9 @@ class CatalogTool (UniqueObject, ZCatalog, CMFCoreCatalogTool, ActiveObject): ...@@ -277,7 +277,9 @@ class CatalogTool (UniqueObject, ZCatalog, CMFCoreCatalogTool, ActiveObject):
security_product = getSecurityProduct(self.acl_users) security_product = getSecurityProduct(self.acl_users)
if security_product == SECURITY_USING_PAS: if security_product == SECURITY_USING_PAS:
# We use ERP5Security PAS based authentication # We use ERP5Security PAS based authentication
result = CMFCoreCatalogTool._listAllowedRolesAndUsers(self, user) result = list( user.getRoles() )
result.append( 'Anonymous' )
result.append( 'user:%s' % user.getId() )
# deal with groups # deal with groups
getGroups = getattr(user, 'getGroups', None) getGroups = getattr(user, 'getGroups', None)
if getGroups is not None: if getGroups is not None:
......
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