Install

Works with Drupal: ^9.5 || ^10

Using Composer to manage Drupal site dependencies

Alternative installation files

Download tar.gz 204.93 KB
MD5: c0c35d87916a74e0ddb4a1f6125cff85
SHA-1: 64a01eaf88da6fe2bb86910ff648775f86f5b36c
SHA-256: 03e9e3ff6a76538a71f22c672514ca609d5d340cc34f3658956e503e186ba95b
Download zip 399.99 KB
MD5: 0087defe257e2c1e48dac94b45fa6080
SHA-1: c22f86a9e8bc3fac33c9f71f0b3b1f258810a63e
SHA-256: 55576863c9e3cfa04b9fa7a4b9a9eb129468061799e8e83d1acba8e40cd28db3

Release notes

This fixes a critical bug that led to duplicate memberships or creator memberships not having the right roles assigned.

Warning: This introduces a behavioral change for code-generated groups' creators. If you have a group type configured to add a membership for the creator and require the creator to fill out their membership form, then code-created groups of that type will no longer generate a creator membership. This is to enforce the fact that you turned on the membership form and therefore probably rely on memberships to not have missing data.

All groups created through the UI will now behave as expected when it comes to their creator memberships. This change record details how code-generated groups now behave slightly differently.

Finally, if you suffered from this bug, your database may still have duplicate memberships in them. I strongly advise you to run this query to find them and then manually sort them out:

SELECT CONCAT('Group: ', gid, ' - User: ', entity_id) as Affected, GROUP_CONCAT(id, ',') as Relationships FROM group_relationship_field_data WHERE plugin_id = 'group_membership' GROUP BY gid, plugin_id, entity_id HAVING COUNT(id) > 1;

Contributors (4)

LOBsTerr, kristiaanvandeneynde, ignaciolflores, percoction

Changelog

Issues: 4 issues resolved.

Changes since 2.2.0:

Bug

Task

Created by: kristiaanvandeneynde
Created on: 13 Oct 2023 at 13:33 UTC
Last updated: 13 Oct 2023 at 13:40 UTC
Bug fixes
Insecure
Unsupported

Other releases