Entity queries must explicitly set whether the query should be access checked or not

Created on 26 June 2023, over 1 year ago
Updated 24 September 2023, about 1 year ago

Problem/Motivation

When the block is added in a page, an error page is shown with the following information

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 core/lib/Drupal/Core/Entity/Query/Sql/Query.php).

Steps to reproduce

Just add the block in any page

Proposed resolution

Update the query to include accessCheck: https://www.drupal.org/node/3201242

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇨🇴Colombia sebasgd

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

Comments & Activities

Production build 0.71.5 2024