Commit 62ac6a1a authored by Alexandre Boeglin's avatar Alexandre Boeglin

When user.getGroups() returns a tuple, we can't append().


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@4548 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent ccbf86f0
......@@ -247,7 +247,7 @@ class CatalogTool (UniqueObject, ZCatalog, CMFCoreCatalogTool, ActiveObject):
# deal with groups
getGroups = getattr(user, 'getGroups', None)
if getGroups is not None:
groups = user.getGroups()
groups = list(user.getGroups())
groups.append('role:Anonymous')
if 'Authenticated' in result:
groups.append('role:Authenticated')
......
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