accessChecks(TRUE) now required due to removal of default behavior in Drupal 10

Created on 19 May 2023, over 1 year ago
Updated 16 September 2024, 2 months ago

Problem/Motivation

https://www.drupal.org/node/3201242 details the deprecation of queries that assumed accessCheck(TRUE). This has been the case since 9.2 and in Drupal 10 it will now throw an error. We need to add explicit ->accessCheck(TRUE) to all queries that don't already specify an accessCheck.

Steps to reproduce

Install Commerce Fee on Drupal 10 and try to access /admin/commerce/fees.

Proposed resolution

Wherever a query is executed, specify ->accessCheck(TRUE) if there isn't one specifying FALSE already.

Remaining tasks

User interface changes

None

API changes

None

Data model changes

None

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇺🇸United States redeight

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

Comments & Activities

Production build 0.71.5 2024