Add accessCheck() on getQuery() method

Created on 30 July 2024, 4 months ago

Problem/Motivation

After updating Drupal core to 10.X , and updating this module to recent version, I am still getting error:

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

Proposed resolution

Add accessCheck() on getQuery() method.

🐛 Bug report
Status

Closed: works as designed

Version

1.2

Component

Code

Created by

🇦🇺Australia sanjay.maharjan

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

Comments & Activities

Production build 0.71.5 2024