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): ...@@ -102,11 +102,8 @@ class ERP5GroupManager(BasePlugin):
security_definition_list = mapping_method() security_definition_list = mapping_method()
# get the person from its reference # get the person from its reference
try: catalog_result = self.portal_catalog(
catalog_result = self.portal_catalog( portal_type="Person", reference=user_name)
portal_type="Person", reference=user_name)
except AttributeError:
return []
if len(catalog_result) != 1: # we won't proceed with groups if len(catalog_result) != 1: # we won't proceed with groups
if len(catalog_result) > 1: # configuration is screwed if len(catalog_result) > 1: # configuration is screwed
raise 'ConsistencyError', 'There is more than one Person whose \ 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