Commit f6e1b27f authored by Rafael Monnerat's avatar Rafael Monnerat

slapos_crm: Reuse Person_hasRequiredRole instead duplicate code.

parent eeb3ba17
if 'service_provider' in context.getRoleList():
return True
for assignment in context.contentValues(portal_type="Assignment"):
if assignment.getValidationState() == "open" and \
assignment.getRole() == 'service_provider':
return True
return False
return context.Person_hasRequiredRole("service_provider")
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