Commit c3ab6b1d authored by Jérome Perrin's avatar Jérome Perrin

support person_module as well as person for Person Module ID


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@4196 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent e65dcbb9
......@@ -102,7 +102,8 @@ class ERP5UserManager(BasePlugin):
t_id = (t_id,)
if t_id:
person_module = self.person
person_module = self.getPortalObject()\
.getDefaultModule('Person')
for user_name in t_id:
user = getattr(person_module, user_name, None)
if user:
......
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