mirror of
https://github.com/ansible/awx.git
synced 2026-07-28 16:39:56 -02:30
remove duplicates from IG list
This commit is contained in:
committed by
Ryan Petrello
parent
128fa8947a
commit
2c533edb3c
@@ -538,7 +538,7 @@ class InstanceGroupAccess(BaseAccess):
|
||||
|
||||
def filtered_queryset(self):
|
||||
return InstanceGroup.objects.filter(
|
||||
organization__in=Organization.accessible_pk_qs(self.user, 'admin_role'))
|
||||
organization__in=Organization.accessible_pk_qs(self.user, 'admin_role')).distinct()
|
||||
|
||||
def can_add(self, data):
|
||||
return self.user.is_superuser
|
||||
|
||||
Reference in New Issue
Block a user