From 0e8b7ab4f41fddea9466db300fc14068f2f46b00 Mon Sep 17 00:00:00 2001 From: Wayne Witzel III Date: Tue, 15 Mar 2016 14:56:35 -0400 Subject: [PATCH] Fixing Inventory access --- 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 a7dd569bee..1fd12f5991 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