mirror of
https://github.com/ansible/awx.git
synced 2026-03-26 21:35:01 -02:30
Addressing comments, updating tests, etc.
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user