mirror of
https://github.com/ansible/awx.git
synced 2026-02-28 16:28:43 -03:30
Return Queryset instead of Manager fix
This commit is contained in:
@@ -3573,7 +3573,7 @@ class RoleChildrenList(SubListAPIView):
|
|||||||
# XXX: This should be the intersection between the roles of the user
|
# XXX: This should be the intersection between the roles of the user
|
||||||
# and the roles that the requesting user has access to see
|
# and the roles that the requesting user has access to see
|
||||||
role = Role.objects.get(pk=self.kwargs['pk'])
|
role = Role.objects.get(pk=self.kwargs['pk'])
|
||||||
return role.children
|
return role.children.all()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user