Merge pull request #1654 from AlanCoding/pluralize_again

Update access check to plural creds
This commit is contained in:
Alan Rominger 2018-05-02 13:08:04 -04:00 committed by GitHub
commit 65b342ae73
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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: