Editing an opening, changing the dates which would result in deleting opening Instances throws an error.

Created on 18 January 2023, over 1 year ago
Updated 2 February 2023, over 1 year ago

This is specifically a d10 issue.

Drupal\Core\Entity\EntityStorageException: 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\Sql\SqlContentEntityStorage->delete() (line 761 of core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php).

Related issues:
https://www.drupal.org/project/drupal/issues/3318457 πŸ’¬ QueryException: Entity queries must explicitly set whether the query should be access checked or not Closed: works as designed

I see a module fixed it by just adding ->accessCheck(TRUE) on an entityQuery. I'm not calling entityQuery directly but I assume other things use it under the hood.

πŸ› Bug report
Status

Fixed

Version

2.2

Component

Code

Created by

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

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024