Commit 780dbb43 authored by Alexandre Boeglin's avatar Alexandre Boeglin

Fix when only login is provided


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@5510 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 55b34d8f
......@@ -119,10 +119,12 @@ class ERP5UserManager(BasePlugin):
_enumerateUsers = CachingMethod(_enumerateUsers, id='ERP5UserManager_enumerateUsers')
if id is None:
id = login
if isinstance(id, str):
id = (id,)
id = (id,)
if isinstance(id, list):
id = tuple(id)
id = tuple(id)
return _enumerateUsers(id_tuple=id, exact_match=exact_match, path=self.getPhysicalPath())
def getUserByLogin(self, login):
......
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