Issue #3470128: Make quick join configurable for custom group types #4046
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Problem && Solution
We used to load all roles / group types based on if -outsider is part of the name. This worked fine for a lot of the circumstances of the old group type where this was the case. Now, with the move to Group v2, oustider became a scope of the actual group role. So to make this compatible, we load all group roles, and figure out if we have a role with outsider scope that has the permission to join groups. Any group types without an outsider scope and or the join group permission we can't configure. As that means there is no group role specified that is able to quickjoin.
Issue tracker
https://www.drupal.org/project/social/issues/3470128
How to test
Release notes
Make sure quick join group has all group types available, including custom ones.