Commit 77f828dd authored by Tristan Cavelier's avatar Tristan Cavelier

getUserValue hack

parent e7ad4420
......@@ -27,6 +27,7 @@ from Products.PluggableAuthService.PropertiedUser import PropertiedUser
from Products.PluggableAuthService.PropertiedUser import \
_what_not_even_god_should_do
from Products.ERP5Security.ERP5UserManager import SUPER_USER
from Products.ERP5Security.ERP5UserManager import getUserByLogin
manage_addERP5UserFactoryForm = PageTemplateFile(
'www/ERP5Security_addERP5UserFactory', globals(),
......@@ -195,6 +196,12 @@ class ERP5User(PropertiedUser):
return None
def getUserValue(self):
found_user_list = getUserByLogin(self.getPortalObject(), str(self))
if len(found_user_list) >= 1:
user, = found_user_list
return user
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