Conflict with Groups 2.x and Flexible Permissions

Created on 26 July 2024, 5 months ago

Problem/Motivation

A site is using Groups 2.x and Flexible permissions. When these modules are enabled, and a user masquerades as another user The following error is generated.

Drupal\flexible_permissions\CalculatedPermissionsScopeException: The calculator "Drupal\group\Access\IndividualGroupPermissionCalculator" returned permissions for scopes other than "individual". in Drupal\flexible_permissions\ChainPermissionCalculator->calculatePermissions() (line 145 of /code/web/modules/composer/flexible_permissions/src/ChainPermissionCalculator.php).

It only happens for some users, but not others.

Steps to reproduce

1. Install Groups module, and flexible permissions.
2. Create groups and add users to it
3. Masquerade as a user.

πŸ› Bug report
Status

Active

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States cmcintosh

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

Comments & Activities

Production build 0.71.5 2024