Commit 5d39ee3f authored by Łukasz Nowak's avatar Łukasz Nowak

- deleted Person object is not system user (== is not able to login)


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@30899 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent dc561c4f
...@@ -122,7 +122,8 @@ class ERP5UserManager(BasePlugin): ...@@ -122,7 +122,8 @@ class ERP5UserManager(BasePlugin):
valid_assignment_list.append(assignment) valid_assignment_list.append(assignment)
if pw_validate(user.getPassword(), password) and \ if pw_validate(user.getPassword(), password) and \
len(valid_assignment_list): #user.getCareerRole() == 'internal': len(valid_assignment_list) and user \
.getValidationState() != 'deleted': #user.getCareerRole() == 'internal':
return login, login # use same for user_id and login return login, login # use same for user_id and login
finally: finally:
setSecurityManager(sm) setSecurityManager(sm)
......
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