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.

Comments

Kosa Ilma created an issue. See original summary.

kosa ilma’s picture

I've created a patch for this:

kosa ilma’s picture

Status: Active » Needs review

  • szato committed 4d37222d on 8.x-3.x authored by Kosa Ilma
    Issue #3360017 by Kosa Ilma: Access checking must be explicitly added...

  • szato committed 4883d419 on 4.0.x authored by Kosa Ilma
    Issue #3360017 by Kosa Ilma: Access checking must be explicitly added...
szato’s picture

Assigned: kosa ilma » Unassigned
Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.