mirror of
https://github.com/ansible/awx.git
synced 2026-03-07 19:51:08 -03:30
Fixed missing accessible_objects permission parameter
This commit is contained in:
@@ -322,7 +322,7 @@ class InventoryAccess(BaseAccess):
|
|||||||
model = Inventory
|
model = Inventory
|
||||||
|
|
||||||
def get_queryset(self, allowed=None, ad_hoc=None):
|
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')
|
qs = qs.select_related('created_by', 'modified_by', 'organization')
|
||||||
return qs
|
return qs
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user