Commit cb4a7c68 authored by Rafael Monnerat's avatar Rafael Monnerat

ERP5LoginUserManager: Check Assignment is only meaninfull for Persons

parent 88fa33d0
...@@ -113,6 +113,7 @@ class ERP5LoginUserManager(BasePlugin): ...@@ -113,6 +113,7 @@ class ERP5LoginUserManager(BasePlugin):
return return
if user_value.getValidationState() == 'deleted': if user_value.getValidationState() == 'deleted':
return return
if user_value.getPortalType() in ('Person', ):
now = DateTime() now = DateTime()
for assignment in user_value.contentValues(portal_type="Assignment"): for assignment in user_value.contentValues(portal_type="Assignment"):
if assignment.getValidationState() == "open" and ( if assignment.getValidationState() == "open" and (
......
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