Addressing comments, updating tests, etc.

This commit is contained in:
beeankha
2019-08-23 12:45:13 -04:00
committed by Ryan Petrello
parent 9f0307404e
commit ea509f518e
6 changed files with 13 additions and 23 deletions

View File

@@ -2809,8 +2809,6 @@ class WorkflowApprovalAccess(BaseAccess):
self.user, 'read_role'))
def can_approve_or_deny(self, obj):
if obj.status != 'pending':
return False
if self.user in obj.workflow_job_template.approval_role or self.user.is_superuser:
return True