D10 Compatibility: entity queries must check access

Created on 3 May 2023, about 1 year ago
Updated 11 May 2023, about 1 year ago

Problem/Motivation

I checked the module with the upgrade_status β†’ module and found the following error:

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.

on line 32 of address.post_update.php

Steps to reproduce

Install the Upgrade status and scan the address module.

Proposed resolution

Add the access check with a FALSE parameter. The function address_post_update_convert_names_subdivisions() needs to update all entities regardless of whether the user running the update has access to the address data or not.

πŸ› Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡΅πŸ‡°Pakistan hmdnawaz

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

Comments & Activities

Production build 0.69.0 2024