mirror of
https://github.com/ZwareBear/awx.git
synced 2026-03-29 12:13:37 -05:00
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