Add accessCheck call for Drupal 10

Created on 19 January 2024, 5 months ago
Updated 14 June 2024, 14 days ago

Problem/Motivation

accessCheck() method should be explicitly called In Drupal 10 for all entity queries otherwise, an exception will be thrown.
See https://www.drupal.org/node/3201242

Proposed resolution

Add explicit call of accessCheck() on every entity query.

Remaining tasks

API changes

🐛 Bug report
Status

Needs work

Version

3.0

Component

Code

Created by

🇦🇷Argentina DIOH

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

Comments & Activities

  • Issue created by @DIOH
  • Status changed to Needs review 4 months ago
  • 🇮🇳India sarwan

    Hi @ukor,

    I have fixed this issue "Add accessCheck call for Drupal 10 and deprecated function watchdog_exception() " and also attached patch,
    please review and verify.

  • Status changed to Needs work 14 days ago
  • 🇺🇸United States markie Albuquerque, NM

    This seems to be a duplicate of #3415921... or maybe that one duplicates this.. That being said the original patch does address the issue. The patch on #2 also does but adds scope. Granted it's a good idea to fix that as well, but I would suggest making that a separate issue, or working with the AutoBot's issue, which fixes the deprecation with a fallback function.

Production build 0.69.0 2024