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:
parent
ac5bc2aaba
commit
06eb13a104
@ -508,4 +508,4 @@ class ResourceAccessList(ListAPIView):
|
||||
ancestors = set()
|
||||
for r in roles:
|
||||
ancestors.update(set(r.ancestors.all()))
|
||||
return User.objects.filter(roles__in=list(ancestors))
|
||||
return User.objects.filter(roles__in=list(ancestors)).distinct()
|
||||
|
Loading…
Reference in New Issue
Block a user