smart_date_recur_entity_delete does not run an accessCheck throwing errors in d10

Created on 24 January 2023, almost 2 years ago
Updated 29 January 2023, almost 2 years ago

If you have a repeating date field, and you open the "Manage Instances" modal and then "Remove Instance" it will throw the following error.

Drupal\Core\Entity\Query\QueryException: Entity queries must explicitly set whether the query should be access checked or not. See Drupal\Core\Entity\Query\QueryInterface::accessCheck(). in Drupal\Core\Entity\Query\Sql\Query->prepare() (line 141 of /var/www/web/core/lib/Drupal/Core/Entity/Query/Sql/Query.php).

In smart_date_recur.module the smart_date_recur_entity_delete function runs an EntityQuery without checking access.

Here is the core change record about the change: https://www.drupal.org/node/3201242 β†’

πŸ› Bug report
Status

Fixed

Version

3.7

Component

Smart Date Recur

Created by

πŸ‡ΊπŸ‡ΈUnited States josh.fabean Florida

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

Comments & Activities

Production build 0.71.5 2024