mirror of
https://github.com/ansible/awx.git
synced 2026-02-04 02:58:13 -03:30
Fix for AC-265.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user