mirror of
https://github.com/ansible/awx.git
synced 2026-02-24 06:26:00 -03:30
fix bugs with system auditors and orphan JTs
This commit is contained in:
@@ -1048,10 +1048,6 @@ class JobTemplateAccess(BaseAccess):
|
||||
return qs.select_related('created_by', 'modified_by', 'inventory', 'project',
|
||||
'credential', 'cloud_credential', 'next_schedule').all()
|
||||
|
||||
@check_superuser
|
||||
def can_read(self, obj):
|
||||
return self.user in obj.read_role
|
||||
|
||||
def can_add(self, data):
|
||||
'''
|
||||
a user can create a job template if they are a superuser, an org admin
|
||||
|
||||
Reference in New Issue
Block a user