Commit fdabcfdc authored by Alexandre Boeglin's avatar Alexandre Boeglin

Latest workaround was bad. Rollback.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@5556 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent b3cf36d2
......@@ -102,11 +102,8 @@ class ERP5GroupManager(BasePlugin):
security_definition_list = mapping_method()
# get the person from its reference
try:
catalog_result = self.portal_catalog(
portal_type="Person", reference=user_name)
except AttributeError:
return []
catalog_result = self.portal_catalog(
portal_type="Person", reference=user_name)
if len(catalog_result) != 1: # we won't proceed with groups
if len(catalog_result) > 1: # configuration is screwed
raise 'ConsistencyError', 'There is more than one Person whose \
......
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