diff --git a/awx/api/views.py b/awx/api/views.py index 4ad0a9cc58..16a0bbb719 100644 --- a/awx/api/views.py +++ b/awx/api/views.py @@ -958,6 +958,7 @@ class ProjectList(ListCreateAPIView): 'admin_role', 'use_role', 'update_role', + 'read_role', ) return projects_qs @@ -1487,7 +1488,7 @@ class InventoryList(ListCreateAPIView): def get_queryset(self): qs = Inventory.accessible_objects(self.request.user, 'read_role') - qs = qs.select_related('admin_role', 'read_role', 'update_role', 'use_role') + qs = qs.select_related('admin_role', 'read_role', 'update_role', 'use_role', 'adhoc_role') return qs class InventoryDetail(RetrieveUpdateDestroyAPIView):