Access checking must be explicitly specified on entity queries

Created on 27 March 2023, about 2 years ago
Updated 24 April 2023, almost 2 years ago

Access checking needs to be explicitly set as per https://www.drupal.org/node/3201242 β†’

There is an entity query in super_login_user_login_validate() that throws this error:

The website encountered an unexpected error. Please try again later.

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).
Drupal\Core\Entity\Query\Sql\Query->execute() (Line: 154)
super_login_user_login_validate(Array, Object)
call_user_func_array('super_login_user_login_validate', Array) (Line: 82)
πŸ› Bug report
Status

Fixed

Version

2.1

Component

Code

Created by

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

Comments & Activities

Production build 0.71.5 2024