No default membership in subgroup

Created on 16 July 2024, 7 months ago
Updated 5 August 2024, 7 months ago

Hello there!

I might be missing something essential, but I have an issue: After assigning a group as the subgroup of another and then creating one of those subgroups, the default membership is not created.

So, I tested this even with a fresh Drupal 10 install:
- Created 2 group types: Parent and Child.
- Configured both to automatically add creator as member and assign them as admins of the new group.
- Tested creating both types of groups: both set the group creator as member and admin as supposed. This was before setting up the Subgroup settings.
- Configured the Child as a subgroup of Parent via the Subgroup module settings.
- Added new Child as subgroup of Parent.
- The default membership is not created, there are no members at all in the new subgroup.

Is this the correct behaviour? At first I wasn't able to even edit the child group as there was no memberships at all, but with permissions inheritance I was able to get enough permissions to edit/delete it. But this can't work correctly right, or what am I missing? If someone without superuser permissions created a subgroup, how would they ever edit it or add more members, as they are not set as the (admin) member in the subgroup? I mean, no matter what you can do with the permission inheritance, it should still respect the settings of Group module right (as in, add the creator as member/admin, if set so)?

💬 Support 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

  • Issue created by @phonkala
  • 🇫🇮Finland phonkala

    I figured this out finally. If you have "Group creator must complete their membership" checked in the subgroup group type, the membership is not created automatically. I turned that off, and now the membership is created correctly when new subgroup is created.

Production build 0.71.5 2024