Add contractor manager role.
This commit is contained in:
parent
9cadf4eed5
commit
5971860c4f
7 changed files with 15 additions and 6 deletions
|
|
@ -30,7 +30,7 @@ def installation_assign_step(request, instance_id, step_id):
|
|||
profile = getattr(request.user, 'profile', None)
|
||||
is_manager = False
|
||||
try:
|
||||
is_manager = bool(profile and profile.has_role(UserRoles.MANAGER))
|
||||
is_manager = bool(profile and profile.has_role(UserRoles.MANAGER)) or bool(profile and profile.has_role(UserRoles.CONTRACTOR_MANAGER))
|
||||
except Exception:
|
||||
is_manager = False
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue