Relying on entity queries to check access by default is deprecated.

Created on 15 March 2024, about 1 year ago

Problem/Motivation

--------------------------------------------------------------------------------
Check manually 103 Relying on entity queries to check access by default is
deprecated in drupal:9.2.0 and an error will be thrown from
drupal:10.0.0. Call
\Drupal\Core\Entity\Query\QueryInterface::accessCheck() with
TRUE or FALSE to specify whether access should be checked.
--------------------------------------------------------------------------------

Steps to reproduce

Visit the admin page in drupal 10.

Proposed resolution

Add $query->accessCheck().

🐛 Bug report
Status

Closed: outdated

Version

1.9

Component

Code

Created by

🇳🇱Netherlands diddism

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

Comments & Activities

Production build 0.71.5 2024