Commit 233d85da authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

ERP5Security: ERP5User.getUserName() should return Person reference.

parent e4b3fa74
...@@ -195,6 +195,15 @@ class ERP5User(PropertiedUser): ...@@ -195,6 +195,15 @@ class ERP5User(PropertiedUser):
return None return None
def getUserName(self):
""" -> login name
In the super class it returns self._login but here it returns
self._id instead, because now self._id is the Person's reference
and self._login is a dict contains information about login.
"""
return self._id
InitializeClass(ERP5User) InitializeClass(ERP5User)
......
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