mirror of
https://github.com/ansible/awx.git
synced 2026-05-13 12:27:37 -02:30
fix a few nits w/ workflow approval activity stream records
This commit is contained in:
@@ -2807,8 +2807,7 @@ class WorkflowApprovalAccess(BaseAccess):
|
||||
def can_approve_or_deny(self, obj):
|
||||
if obj.status != 'pending':
|
||||
return False
|
||||
wfjt = obj.unified_job_node.workflow_job.unified_job_template
|
||||
if self.user in wfjt.approval_role or self.user.is_superuser:
|
||||
if self.user in obj.workflow_job_template.approval_role or self.user.is_superuser:
|
||||
return True
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user