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)) {