mirror of
https://github.com/ansible/awx.git
synced 2026-01-14 11:20:39 -03:30
update access check to plural creds
This commit is contained in:
parent
72655961e4
commit
652f837622
@ -1924,7 +1924,7 @@ class WorkflowJobAccess(BaseAccess):
|
||||
return self.can_recreate(obj)
|
||||
|
||||
def can_recreate(self, obj):
|
||||
node_qs = obj.workflow_job_nodes.all().prefetch_related('inventory', 'credential', 'unified_job_template')
|
||||
node_qs = obj.workflow_job_nodes.all().prefetch_related('inventory', 'credentials', 'unified_job_template')
|
||||
node_access = WorkflowJobNodeAccess(user=self.user)
|
||||
wj_add_perm = True
|
||||
for node in node_qs:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user