- Issue created by @michael.roosz
- Status changed to Fixed
over 1 year ago 1:01pm 7 March 2023 Automatically closed - issue fixed for 2 weeks with no activity.
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 core/lib/Drupal/Core/Entity/Query/Sql/Query.php).
Drupal\Core\Entity\Query\Sql\Query->execute() (Line: 84)
Drupal\config_pages\Entity\ConfigPagesType::postDelete(Object, Array) (Line: 460)
try to delete a config page with drupal 10
add acces check as described here: https://www.drupal.org/node/3201242 →
current (bug):
$config_page_ids = $query->condition('type', $type->id())->execute();
fixed:
$config_page_ids = $query->accessCheck(TRUE)->condition('type', $type->id())->execute();
Fixed
2.12
Code
Automatically closed - issue fixed for 2 weeks with no activity.