mirror of
https://github.com/ansible/awx.git
synced 2024-11-02 18:21:12 +03:00
fix bug where role name was given incorrectly
This commit is contained in:
parent
8e51f61afa
commit
8a7f00bdf7
@ -1861,7 +1861,7 @@ class WorkflowJobTemplateAccess(BaseAccess):
|
|||||||
if self.user.is_superuser:
|
if self.user.is_superuser:
|
||||||
return True
|
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)
|
self.user in obj.admin_role)
|
||||||
|
|
||||||
def can_delete(self, obj):
|
def can_delete(self, obj):
|
||||||
|
Loading…
Reference in New Issue
Block a user