Skip to content

Commit d4960b8

Browse files
committed
Fix superuser not showing in access list
1 parent 8eef04d commit d4960b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ansible_base/rbac/api/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ def get_queryset(self):
291291
assignment_qs = obj_assignment_qs | global_assignment_qs
292292
actor_qs = actor_cls.objects.filter(role_assignments__in=assignment_qs)
293293
if actor_cls._meta.model_name == 'user':
294-
actor_qs |= actor_qs.filter(is_superuser=True)
294+
actor_qs |= actor_cls.objects.filter(is_superuser=True)
295295
return actor_qs
296296

297297
def get_serializer(self, *args, **kwargs):

0 commit comments

Comments
 (0)