update access check to plural creds

This commit is contained in:
AlanCoding 2018-05-02 11:37:38 -04:00
parent 72655961e4
commit 652f837622
No known key found for this signature in database
GPG Key ID: FD2C3C012A72926B

View File

@ -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: