mirror of
https://github.com/ansible/awx.git
synced 2026-05-17 06:17:36 -02:30
role check fix
This commit is contained in:
@@ -348,7 +348,7 @@ class InventoryAccess(BaseAccess):
|
|||||||
return self.can_admin(obj, None)
|
return self.can_admin(obj, None)
|
||||||
|
|
||||||
def can_run_ad_hoc_commands(self, obj):
|
def can_run_ad_hoc_commands(self, obj):
|
||||||
return self.user in adhoc_role
|
return self.user in obj.adhoc_role
|
||||||
|
|
||||||
class HostAccess(BaseAccess):
|
class HostAccess(BaseAccess):
|
||||||
'''
|
'''
|
||||||
|
|||||||
Reference in New Issue
Block a user