Social 13 groups update - Error: Class "Drupal\group\Entity\GroupContent" not found

Created on 19 January 2025, 3 months ago

Problem/Motivation

With updates in Social 13.x there is an error at home when checking groups permissions.

Steps to reproduce

Visit home page with an authenticated but non admin or special role. This error is shown:
Error: Class "Drupal\group\Entity\GroupContent" not found in Drupal\social_group_types\EntityAccessHelper::nodeAccessCheck() (line 69 of /html/modules/contrib/social_group_types/src/EntityAccessHelper.php).

Proposed resolution

getEntityAccessResult is called from hook social_group_types_node_access in social_group_types.module. By removing that hook the problem dissappears.

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024