mirror of
https://github.com/ansible/awx.git
synced 2026-05-08 18:07:36 -02:30
Merge pull request #2002 from AlanCoding/fix_inv_use_role
Cleanup stray exec -> use role for inventory list
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