Group Access Issue

Created on 6 August 2024, 5 months ago
Updated 20 August 2024, 4 months ago

Problem/Motivation

After group module upgrade to 2.2.2 and drupal upgrade to 10.2.2, I discovered that i am not able to access group detail if I have membership for that group and it says access. I am a webmaster and i have given all the group permissions to myself.

When I created an view to display all groups, it gives me below query. I am member of group with ID 8, 82 and it do not show these groups in the list or dont let me access.

SELECT "groups_field_data"."id" AS "id"
FROM
{groups_field_data} "groups_field_data"
LEFT OUTER JOIN {group_relationship_field_data} "gcfd" ON groups_field_data.id=gcfd.gid AND gcfd.plugin_id='group_membership' AND gcfd.entity_id='138216'
WHERE ("groups_field_data"."status" = '1') AND ((("groups_field_data"."status" = '0') AND ((("groups_field_data"."type" IN ('local_group')) AND ("gcfd"."entity_id" IS NULL)) OR ("groups_field_data"."id" IN ('8', '82')))) OR (("groups_field_data"."status" = '1') AND (("groups_field_data"."type" IN ('local_group')) AND ("gcfd"."entity_id" IS NULL))))
LIMIT 10 OFFSET 0

Steps to reproduce

  • Upgrade group module to 2.2.2
  • Add yourself as member(administrator) to any group which is listed in the group list
  • You will find later you are not able to see in the list as well.
  • Once you remove yourself, then you can see the group in the list and access group details. Very strange.
💬 Support request
Status

Fixed

Version

2.2

Component

Code

Created by

🇳🇵Nepal lalustine

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024