From 8a7f00bdf75daa1cf459a8f10d599c4d08f60c0c Mon Sep 17 00:00:00 2001 From: AlanCoding Date: Tue, 3 Apr 2018 13:39:16 -0400 Subject: [PATCH] fix bug where role name was given incorrectly --- awx/main/access.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awx/main/access.py b/awx/main/access.py index bf74f2a491..62c52a41e6 100644 --- a/awx/main/access.py +++ b/awx/main/access.py @@ -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):