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

Created on 15 March 2024, 3 months 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

  • Issue created by @diddism
  • Status changed to Closed: outdated 3 months ago
  • πŸ‡³πŸ‡±Netherlands diddism

    Sorry, we had a patch installed, saw that after creating a new patch.

Production build 0.69.0 2024