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