mirror of
https://github.com/ansible/awx.git
synced 2026-01-14 03:10:42 -03:30
Fixing Inventory access
This commit is contained in:
parent
3f29f1e3b5
commit
0e8b7ab4f4
@ -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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user