Access checking must be explicitly specified on content entity queries

Created on 30 September 2021, over 2 years ago
Updated 3 November 2023, 8 months ago

Problem/Motivation

Not calling ::accessCheck() has now been deprecated, and all entity queries on content entities should always include an explicit call to ::accessCheck() prior to the query being executed. For Drupal 10 this will be enforced by throwing an exception if ::accessCheck() is not called.

See: https://www.drupal.org/node/3201242 β†’

πŸ“Œ Task
Status

Needs review

Version

1.0

Component

Code

Created by

πŸ‡§πŸ‡·Brazil paulocs Belo Horizonte

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024