- Issue created by @cmcintosh
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.
1. Install Groups module, and flexible permissions.
2. Create groups and add users to it
3. Masquerade as a user.
Active
2.0
Code