- Issue created by @banoodle
I'm not a contributor on this module, but I ran into the same issue and found that for Group 3.2.2 this is caused by:
web\modules\contrib\group\src\Plugin\EntityReferenceSelection\GroupTypeRoleSelection.php
line 32, in the class, `GroupTypeRoleSelection` filters for only individual scoped roles.
$query->condition('scope', PermissionScopeInterface::INDIVIDUAL_ID, '=');
I have no idea if this is intentional or a bug, but this is preventing visibility, and thus the ability to edit a member's roles, on the group 'member edit' form. Commenting this line out restores showing all available roles.
I believe I understand now why this form is the way it is.
The 'insider' and 'outsider' scopes are meant to be 1-1 associations to a global role. When setting up 'insider' and 'outsider' group roles we saying all users with this associated global role will automatically be granted these group roles, and permissions. Therefore, there is no need to have the 'insider' and 'outsider' roles in the member edit form because that member already assumes this group role per their assigned global roles. Editing whether these 'insider' and 'outsider' roles are associated to the global role, and then a user's global roles is how one would manage these relationships.
However, if we want group roles that are group specific, that we do not want directly associated to global roles, we would then create a role with an 'individual' scope. Since there is no pre-existing global relationship with a user, these roles are then visible and assignable via the group member's edit form.
- π¦πΉAustria mvonfrie
This is similar to β¨ Display implicit roles of group memberships Active , you must not assign insider/outsider roles, but it should be visible that the user implicitely "has" these roles.