1
0
mirror of https://github.com/ansible/awx.git synced 2024-11-02 09:51:09 +03:00

Fixed duplicate users in access_list

Uhg.
This commit is contained in:
Akita Noek 2016-05-16 10:52:41 -04:00
parent ac5bc2aaba
commit 06eb13a104

View File

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