Update EntityAccessHelper.php service namespace

Created on 1 February 2023, over 1 year ago
Updated 19 May 2023, over 1 year ago

Problem/Motivation

Service call for the "common" method points to social_flex at line 68 of EntityAccessHelper.php file but it should point to social_group_types.

Steps to reproduce

Accessing a group with an authenticated user (not admin) throws an error when cheking access permissions.

Proposed resolution

Change code at line 68 from:
$flexible_group_types = \Drupal::service('social_flex.common');
to:
$flexible_group_types = \Drupal::service('social_group_types.common');

Remaining tasks

Change line 68 to:
$flexible_group_types = \Drupal::service('social_group_types.common');

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

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

Comments & Activities

Production build 0.71.5 2024