We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8eef04d commit d4960b8Copy full SHA for d4960b8
ansible_base/rbac/api/views.py
@@ -291,7 +291,7 @@ def get_queryset(self):
291
assignment_qs = obj_assignment_qs | global_assignment_qs
292
actor_qs = actor_cls.objects.filter(role_assignments__in=assignment_qs)
293
if actor_cls._meta.model_name == 'user':
294
- actor_qs |= actor_qs.filter(is_superuser=True)
+ actor_qs |= actor_cls.objects.filter(is_superuser=True)
295
return actor_qs
296
297
def get_serializer(self, *args, **kwargs):
0 commit comments