From f6b3be40f116931603806b7886ff1063fe20b3e5 Mon Sep 17 00:00:00 2001 From: Chris Church Date: Fri, 26 Jul 2013 18:43:25 -0400 Subject: [PATCH] Fix for AC-265. --- 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 3174460f0c..fe32f2be90 100644 --- a/awx/main/access.py +++ b/awx/main/access.py @@ -758,7 +758,7 @@ class JobTemplateAccess(BaseAccess): # be able to proceed without additional checks. project_pk = get_pk_from_dict(data, 'project') project = get_object_or_400(Project, pk=project_pk) - if self.user.can_access(Project, 'admin', project): + if self.user.can_access(Project, 'admin', project, None): return True # Otherwise, check for explicitly granted permissions for the project