mirror of
https://github.com/ansible/awx.git
synced 2026-05-16 13:57:39 -02:30
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