mirror of
https://github.com/ansible/awx.git
synced 2026-03-06 19:21:06 -03: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