From e0e3954a8aaffa9fd0493e20f33c49b2b1dfe271 Mon Sep 17 00:00:00 2001 From: Akita Noek Date: Tue, 15 Mar 2016 13:05:58 -0400 Subject: [PATCH] Fixed missing accessible_objects permission parameter --- awx/main/access.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awx/main/access.py b/awx/main/access.py index a160bef596..2446c94553 100644 --- a/awx/main/access.py +++ b/awx/main/access.py @@ -322,7 +322,7 @@ class InventoryAccess(BaseAccess): model = Inventory def get_queryset(self, allowed=None, ad_hoc=None): - qs = self.model.accessible_objects(self.user) + qs = self.model.accessible_objects(self.user, {'read': True}) qs = qs.select_related('created_by', 'modified_by', 'organization') return qs