mirror of
https://github.com/ansible/awx.git
synced 2024-10-31 23:51:09 +03:00
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:
commit
7a08f37132
@ -1573,10 +1573,6 @@ class CustomInventoryScriptAccess(BaseAccess):
|
||||
def can_delete(self, obj):
|
||||
return self.can_admin(obj)
|
||||
|
||||
@check_superuser
|
||||
def can_read(self, obj):
|
||||
return self.user in obj.read_role
|
||||
|
||||
|
||||
class TowerSettingsAccess(BaseAccess):
|
||||
'''
|
||||
|
Loading…
Reference in New Issue
Block a user