mirror of
https://github.com/ansible/awx.git
synced 2026-05-08 09:57:35 -02:30
fix bug of system auditor 404 viewing job
This commit is contained in:
@@ -1357,12 +1357,6 @@ class JobAccess(BaseAccess):
|
||||
return True
|
||||
return False
|
||||
|
||||
@check_superuser
|
||||
def can_read(self, obj):
|
||||
if obj.job_template and self.user in obj.job_template.read_role:
|
||||
return True
|
||||
return self.org_access(obj, role_types=['auditor_role', 'admin_role'])
|
||||
|
||||
def can_add(self, data, validate_license=True):
|
||||
if validate_license:
|
||||
self.check_license()
|
||||
|
||||
Reference in New Issue
Block a user