D10 compatibility: 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.

Created on 22 May 2023, over 1 year ago
Updated 5 October 2023, about 1 year ago

Problem/Motivation

See Drupal core Change record - https://www.drupal.org/node/3201242 β†’

Webhooks,  2.0.0-alpha1
Scanned on Mon, 05/22/2023 - 13:20

FILE: modules/contrib/webhooks/modules/webhook/src/WebhookListBuilder.php

STATUS         LINE                           MESSAGE
--------------------------------------------------------------------------------
Check manually 68   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.
--------------------------------------------------------------------------------

FILE: modules/contrib/webhooks/src/Commands/WebhooksCommands.php

STATUS         LINE                           MESSAGE
--------------------------------------------------------------------------------
Check manually 127  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.
--------------------------------------------------------------------------------

Steps to reproduce

Install Upgrade status β†’ module.
Execute command drush upgrade_status:analyze webhooks

Proposed resolution

Add ::accessCheck()

πŸ› Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡¦Ukraine deimos

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

Comments & Activities

Production build 0.71.5 2024