From 79e98ae21f120b2dfbd80737a449d02550fcc32a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C3=A9ter=20Serf=C5=91z=C5=91?= Date: Tue, 4 Apr 2023 23:57:50 +0200 Subject: [PATCH] fix: LDP-2008: Explicitly set access check for entity queries. --- src/Drush/Commands/PlaywrightDrushCommands.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Drush/Commands/PlaywrightDrushCommands.php b/src/Drush/Commands/PlaywrightDrushCommands.php index fa2cc91..5436516 100644 --- a/src/Drush/Commands/PlaywrightDrushCommands.php +++ b/src/Drush/Commands/PlaywrightDrushCommands.php @@ -250,6 +250,7 @@ public function getCanonicalUrl(): string { public function cleanUpContent(string $keyword) { $node_storage = $this->getEntityTypeManager()->getStorage('node'); $nids = $node_storage->getQuery() + ->accessCheck(FALSE) ->condition('title', $keyword, 'STARTS_WITH') ->execute(); if (!empty($nids)) { @@ -260,6 +261,7 @@ public function cleanUpContent(string $keyword) { } $taxonomy_term_storage = $this->getEntityTypeManager()->getStorage('taxonomy_term'); $tids = $taxonomy_term_storage->getQuery() + ->accessCheck(FALSE) ->condition('name', $keyword, 'STARTS_WITH') ->execute(); if (!empty($tids)) {