Commit 84651315 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

ERP5Security.ERP5GroupManager: number of searchUsers() result can be 2 during migration.

parent 04de739f
......@@ -124,7 +124,8 @@ class ERP5GroupManager(BasePlugin):
]
if not user_list:
return ()
user, = user_list
# len(user_list) can be 2 during migration.
user = user_list[0]
person_object = self.getPortalObject().unrestrictedTraverse(user['path'])
# Fetch category values from defined scripts
......
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