Fix infinite loop on D10.3 + Flexible Permissions 2.0.0

Created on 7 June 2024, 24 days ago
Updated 21 June 2024, 10 days ago

Drupal 10.3 has the Access Policy API and Flexible Permissions v2 has a converter to convert old policies into new ones. The policy in Group Sites did not rule out any non-group scopes when providing initial cache contexts, leading to all policies to check the admin mode.

Problem is, the admin mode relies on a regular Drupal permission and therefore triggers the access policy processor for the drupal scope. This lands us back at the Group Sites access policy, and so on.

Fix is simple: Until we switch to the Access Policy API and can use the applies() method, filter out the non-group scopes in the cache context providing method.

πŸ› Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡§πŸ‡ͺBelgium kristiaanvandeneynde Antwerp, Belgium

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

Merge Requests

Comments & Activities

Production build 0.69.0 2024