mirror of
https://github.com/ansible/awx.git
synced 2026-01-20 06:01:25 -03:30
role check fix
This commit is contained in:
parent
2ddac6cb64
commit
8f70884c2a
@ -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):
|
||||
'''
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user