Option to allow creating subgroups only "inside" parent group

Created on 5 August 2024, 7 months ago

Let's consider following situation: I got two group types, Project and Project Team. I want to allow the creation of Project Teams ONLY INSIDE Projects. Same Project Team can be part of multiple Projects (obviously this ggroup module allows it, unlike the subgroup module), but Project Team should never exist outside of a Project.

Currently with this module, it is possible to create Project Teams directly, without them being subgroups of certain Project. I can't see any way of preventing it either, at least not without some additional modules (for example "URL Restriction By Role"). I was just wondering if this would be a feature that could/should be added to this module?

I do remember the Subgroup (subgroup) module does this automatically, it actually completely removes the subgroup type even from the Group UI (/group/add) so it's not even an option to add a subgroup directly without parent group context.

Feature request
Status

Active

Version

3.0

Component

Code

Created by

🇫🇮Finland phonkala

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024