Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I have:
- Closed group
-- Closed sub-group
Users are registered manually, so memberships are selected at this point. Currently, it's not possible to propagate membership if I select the sub-group only, as the code doesn't allow it.
I wish to have this overridden somehow, could be a setting or just a variable. Or maybe, let it propagate if the sub-group is also a Closed Membership (or Invite-only)
Comment | File | Size | Author |
---|---|---|---|
#11 | membershipPropagation.patch | 1.33 KB | Anonymous (not verified) |
#10 | membershipPropagation.patch | 1.24 KB | Anonymous (not verified) |
#8 | 1190488_2.patch | 2.71 KB | robcarr |
#4 | 1190488.patch | 2.26 KB | robcarr |
#6 | 1190488_1.patch | 2.46 KB | robcarr |
Comments
Comment #1
MauPalantir CreditAttribution: MauPalantir commentedI have exactly the same problem... I need user propagation when the group admin adds a member to a subgroup
Comment #2
mindaugasd CreditAttribution: mindaugasd commentedsubscribing
Comment #3
robcarrIt seems there are 2 schools of thought on this: propagation should happen regardless vs group joining criteria should be adhered to (the inverse request of this issue is #1080298: User propagation adds users to non open groups ... ). As there seems to be a lot of of issues raised around this issue, it seems that there are 2 distinct use case for this module, and it would be nice to cater for both.
So, I agree with @franz, there should be some sort of override toggle for overriding the group membership requests available.
Comment #4
robcarrA bit of hacking this morning and and I've added a 'Override Group Joining Criteria' option on the propagation page. Seems to work fine for the og_subgroups_prop module, although only tried the parent direction so far.
Rolled against 6.x-1.0-beta3... not tried against DEV, but probably worth a shot. Very tempted to correct typos in the
$form['propagte_content']
but life's too short. Please review and change to RTBC if it seems fine (although may need to be re-rolled against DEV)Comment #5
robcarrActually a bit more testing... If the override is used, and users are subscribed by propagation to a 'Closed' parent group, that parent group still requires final admin approval. Not quite sure that's what's exactly needed for this generic use case but it works well for my current project.
Any thoughts?
Comment #6
robcarrAnd another patch which is a full override so that no final approval is needed.
Any thoughts?
Comment #7
franzthis needs soft-tabbing
again
Apart from coding standards, seems a nice solution.
Comment #8
robcarrHad another rethink and now changed the logic so that you can select either:
This should meet most use cases.
So re-roll of the day #3. Hopefully no tabs.
Comment #9
robcarrComment #10
Anonymous (not verified) CreditAttribution: Anonymous commentedIf I have a closed group, only administrator can subscribe a user.
So, I made a patch to propagate the membership to the soubgroups only if an admin made the subscription.
In this way, we follow the standard behavior, without the need to force it.
Comment #11
Anonymous (not verified) CreditAttribution: Anonymous commentedThis is the new patch that makes subscribed members approved
Comment #12
cspiker CreditAttribution: cspiker commentedThe patch in #8 works well. Seems like a good solution.
Comment #13
Sutharsan CreditAttribution: Sutharsan commented