mirror of
https://github.com/ansible/awx.git
synced 2026-05-10 19:07:36 -02:30
inventory exec role changed to use
This commit is contained in:
@@ -1483,7 +1483,7 @@ class InventoryList(ListCreateAPIView):
|
|||||||
|
|
||||||
def get_queryset(self):
|
def get_queryset(self):
|
||||||
qs = Inventory.accessible_objects(self.request.user, 'read_role')
|
qs = Inventory.accessible_objects(self.request.user, 'read_role')
|
||||||
qs = qs.select_related('admin_role', 'read_role', 'update_role', 'execute_role')
|
qs = qs.select_related('admin_role', 'read_role', 'update_role', 'use_role')
|
||||||
return qs
|
return qs
|
||||||
|
|
||||||
class InventoryDetail(RetrieveUpdateDestroyAPIView):
|
class InventoryDetail(RetrieveUpdateDestroyAPIView):
|
||||||
|
|||||||
Reference in New Issue
Block a user