Add accessCheck call for Drupal 10

Created on 19 January 2024, 11 months ago
Updated 3 July 2024, 6 months 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

Closed: duplicate

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 10 months ago
  • 🇮🇳India sarwan_verma

    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 6 months 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.

  • Status changed to Closed: duplicate 6 months ago
Production build 0.71.5 2024