From 07bea4c8b0619dfec66fca8a8c138a0940123f76 Mon Sep 17 00:00:00 2001 From: AlanCoding Date: Fri, 1 Jul 2016 10:10:00 -0400 Subject: [PATCH] Revert "Merge pull request #2444 from AlanCoding/2364_access_list_restriction" This reverts commit b71307bf91d1f1a9337071e04ecced012826584b, reversing changes made to 1be12482954b680ba7a55746594a7e29df9b178d. --- awx/api/generics.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awx/api/generics.py b/awx/api/generics.py index 9655e41642..51598979d8 100644 --- a/awx/api/generics.py +++ b/awx/api/generics.py @@ -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()