Access checking must be explicitly added for entity queries

Created on 12 May 2023, over 1 year ago
Updated 6 July 2023, over 1 year ago

Problem/Motivation

Drupal\Core\Entity\Query\QueryException: Entity queries must explicitly set whether the query should be access checked or not. See Drupal\Core\Entity\Query\QueryInterface::accessCheck(). in Drupal\Core\Entity\Query\Sql\Query->prepare() (line 141 of /var/www/html/web/core/lib/Drupal/Core/Entity/Query/Sql/Query.php)

Steps to reproduce

With Drupal 10 when an exception/error occurred I got the error.

Proposed resolution

Access checking must be explicitly added for entity queries.

🐛 Bug report
Status

Fixed

Version

3.0

Component

Code

Created by

🇷🇴Romania Kosa Ilma

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

Comments & Activities

Production build 0.71.5 2024