- Issue created by @martinelkb
- 🇩🇪Germany martinelkb
I think it's related to
https://www.drupal.org/project/group/issues/3329720 💬 Group::getMembers() returns empty for syncronized roles Fixed
So it should be fixed in group 3.0.x
The problem occurs when the user has no other role in the group, only the membership.
If a role is given to the user, also the membership is detected. If there isn´t a special user-role, the array of $current_user_group_roles will be empty. The form is not shown, even if there is a membership.
(webform_group.module, line 293)
$current_user_group_roles = {string[2]} ["mygroup-sp...", "mygroup-me..."]
mygroup-specialrole = "mygroup-specialrole"
mygroup-member = "mygroup-member"
Tested with groups version: 2.2.1
Create a form with no access for non-admin-user-roles. Configure access for "Group (node) roles". Choose an available group role.
Create user in this group, only membership, no group-role.
User should have access to the form, but hasn´t.
Change code, that also the membership is detected here.
Active
2.0
Code
I think it's related to
https://www.drupal.org/project/group/issues/3329720
💬
Group::getMembers() returns empty for syncronized roles
Fixed
So it should be fixed in group 3.0.x