1
0
mirror of https://github.com/ansible/awx.git synced 2024-11-02 09:51:09 +03:00

fix bug where role name was given incorrectly

This commit is contained in:
AlanCoding 2018-04-03 13:39:16 -04:00
parent 8e51f61afa
commit 8a7f00bdf7
No known key found for this signature in database
GPG Key ID: FD2C3C012A72926B

View File

@ -1861,7 +1861,7 @@ class WorkflowJobTemplateAccess(BaseAccess):
if self.user.is_superuser:
return True
return (self.check_related('organization', Organization, data, role_field='workflow_admin_field', obj=obj) and
return (self.check_related('organization', Organization, data, role_field='workflow_admin_role', obj=obj) and
self.user in obj.admin_role)
def can_delete(self, obj):