1
0
mirror of https://github.com/ansible/awx.git synced 2024-11-01 08:21:15 +03:00

Revert "Merge pull request #2444 from AlanCoding/2364_access_list_restriction"

This reverts commit b71307bf91d1f1a9337071e04ecced012826584b, reversing
changes made to 1be12482954b680ba7a55746594a7e29df9b178d.
This commit is contained in:
AlanCoding 2016-07-01 10:10:00 -04:00
parent 27795e2854
commit 07bea4c8b0

View File

@ -521,4 +521,4 @@ class ResourceAccessList(ListAPIView):
ancestors = set()
for r in roles:
ancestors.update(set(r.ancestors.all()))
return self.request.user.get_queryset(User).filter(roles__in=list(ancestors)).distinct()
return User.objects.filter(roles__in=list(ancestors)).distinct()