Early Bird Registration for DrupalCon Atlanta is now open! By registering during our Early Bird Registration window, you’ll save $100. This window ends on 19 January 2025 and will go by quickly, so don’t wait!
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()
Comment | File | Size | Author |
---|---|---|---|
#4 | 3361865-4-d10-access-check.patch | 1.09 KB | deimos |
Issue fork webhooks-3361865
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
deimos CreditAttribution: deimos at DevBranch, Drupal Ukraine Community, Evolving Web commentedComment #4
deimos CreditAttribution: deimos at DevBranch, Drupal Ukraine Community, Evolving Web commentedAttached patch file.
Comment #5
deimos CreditAttribution: deimos at DevBranch, Drupal Ukraine Community, Evolving Web commentedComment #8
sanduhrsThank you.