role childs service add to BaseViewSet

This commit is contained in:
2025-10-28 09:51:30 +03:30
parent 714e9abc1c
commit f7df23abe3
2 changed files with 20 additions and 1 deletions

View File

@@ -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