role childs service add to BaseViewSet
This commit is contained in:
@@ -11,5 +11,5 @@ def get_all_role_child(role: Role = None) -> typing.Any:
|
||||
children = role.child.all()
|
||||
for child in children:
|
||||
descendants.append(child)
|
||||
descendants.extend(get_all_org_child(child))
|
||||
descendants.extend(get_all_role_child(child))
|
||||
return descendants
|
||||
|
||||
Reference in New Issue
Block a user