mirror of
https://github.com/ansible/awx.git
synced 2026-05-15 21:37:42 -02:30
Merge pull request #2945 from AlanCoding/2944_inv_script_orphan_sys_aud
Allow system auditors to see orphan inventory scripts
This commit is contained in:
@@ -1573,10 +1573,6 @@ class CustomInventoryScriptAccess(BaseAccess):
|
|||||||
def can_delete(self, obj):
|
def can_delete(self, obj):
|
||||||
return self.can_admin(obj)
|
return self.can_admin(obj)
|
||||||
|
|
||||||
@check_superuser
|
|
||||||
def can_read(self, obj):
|
|
||||||
return self.user in obj.read_role
|
|
||||||
|
|
||||||
|
|
||||||
class TowerSettingsAccess(BaseAccess):
|
class TowerSettingsAccess(BaseAccess):
|
||||||
'''
|
'''
|
||||||
|
|||||||
Reference in New Issue
Block a user