From 57e24f22450f9ba5cd35d55830f16b76f7bd06d1 Mon Sep 17 00:00:00 2001 From: catch <catch@35733.no-reply.drupal.org> Date: Wed, 14 Apr 2021 16:12:58 +0100 Subject: [PATCH] Issue #3208267 by jonathanshaw, longwave: EntityQuery accessCheck: InlineBlockEntityOperations should not check access --- core/modules/layout_builder/src/InlineBlockEntityOperations.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/modules/layout_builder/src/InlineBlockEntityOperations.php b/core/modules/layout_builder/src/InlineBlockEntityOperations.php index 9760243bf316..ad255cd6fecf 100644 --- a/core/modules/layout_builder/src/InlineBlockEntityOperations.php +++ b/core/modules/layout_builder/src/InlineBlockEntityOperations.php @@ -228,7 +228,7 @@ public function removeUnused($limit = 100) { */ protected function getBlockIdsForRevisionIds(array $revision_ids) { if ($revision_ids) { - $query = $this->blockContentStorage->getQuery(); + $query = $this->blockContentStorage->getQuery()->accessCheck(FALSE); $query->condition('revision_id', $revision_ids, 'IN'); $block_ids = $query->execute(); return $block_ids; -- GitLab