Missing access check which is now required on queries

Created on 11 June 2024, 17 days ago

Problem/Motivation

The report doesn't work in D10.2 as entity queries need to explicitly set if an access check is not required.

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

- Go to `/admin/reports/entity-count`.
- See error.

Proposed resolution

- State that access check is not required in entity queries.

Remaining tasks

- add accesscheck method

πŸ› Bug report
Status

Needs review

Version

1.2

Component

Code

Created by

πŸ‡¬πŸ‡§United Kingdom very_random_man

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