Skip to content

Commit ebcd34d

Browse files
authored
fix: LDP-2008: Explicitly set access check for entity queries. (#8)
1 parent 7f0690b commit ebcd34d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Drush/Commands/PlaywrightDrushCommands.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,7 @@ public function getCanonicalUrl(): string {
250250
public function cleanUpContent(string $keyword) {
251251
$node_storage = $this->getEntityTypeManager()->getStorage('node');
252252
$nids = $node_storage->getQuery()
253+
->accessCheck(FALSE)
253254
->condition('title', $keyword, 'STARTS_WITH')
254255
->execute();
255256
if (!empty($nids)) {
@@ -260,6 +261,7 @@ public function cleanUpContent(string $keyword) {
260261
}
261262
$taxonomy_term_storage = $this->getEntityTypeManager()->getStorage('taxonomy_term');
262263
$tids = $taxonomy_term_storage->getQuery()
264+
->accessCheck(FALSE)
263265
->condition('name', $keyword, 'STARTS_WITH')
264266
->execute();
265267
if (!empty($tids)) {

0 commit comments

Comments
 (0)