Drupal 10 compatibility | Drupal\Core\Entity\Query\QueryException: Entity queries must explicitly set whether the query should be access checked or not.

Created on 28 August 2024, 3 months ago

Problem/Motivation

In Drupal 10 accessCheck() method should be explicitly called on all entity queries. Otherwise exception will be thrown.
See https://www.drupal.org/node/3201242

Steps to reproduce

Error can be reproduced in different places, navigating through pages affected by opigno_group_manager module

Proposed resolution

Add explicit call of accessCheck() on every entity query.

Remaining tasks

To be verified

User interface changes

No.

API changes

No.

Data model changes

No.

🐛 Bug report
Status

Needs review

Version

3.1

Component

Code

Created by

🇦🇷Argentina leonel.umerez

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

Comments & Activities

Production build 0.71.5 2024