When we list group members (groups), the user can select a few of these subgroups to remove the them from the group. If these subgroups are empty, we want to ask the user if he wants to delete these groups as well.
So we need to know if subgroups are empty.
Subtasks
In /groups/{group_id}/children:
add in output is_empty which is true only if the group is empty, so has not any child groups or users.
that info should be returned only if the current user is a manager
Motivations
When we list group members (groups), the user can select a few of these subgroups to remove the them from the group. If these subgroups are empty, we want to ask the user if he wants to delete these groups as well.
So we need to know if subgroups are empty.
Subtasks
In
/groups/{group_id}/children
:is_empty
which is true only if the group is empty, so has not any child groups or users.