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

Created on 17 October 2024, 2 months ago

Problem/Motivation

/admin/content/bulkdelete shows

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

Drupal\Core\Entity\Query\Sql\Query->execute() (Line: 63)
Drupal\bulkdelete\Form\BulkDeleteForm->buildForm(Array, Object)

Steps to reproduce

Using drupal 10 and latest 8.x dev version.

Proposed resolution

Add access check

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇩🇪Germany mfrosch

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024