Skip to content

Commit

Permalink
Fix drush-ops#5058. Load/delete entities that are access controlled.
Browse files Browse the repository at this point in the history
  • Loading branch information
weitzman committed Jan 31, 2022
1 parent 8c71d00 commit 337b918
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Drupal/Commands/core/EntityCommands.php
Expand Up @@ -167,7 +167,7 @@ public function doSave(string $entity_type, array $ids): void
protected function getQuery(string $entity_type, ?string $ids, array $options): QueryInterface
{
$storage = $this->entityTypeManager->getStorage($entity_type);
$query = $storage->getQuery();
$query = $storage->getQuery()->accessCheck(false);
if ($ids = StringUtils::csvToArray((string) $ids)) {
$idKey = $this->entityTypeManager->getDefinition($entity_type)->getKey('id');
$query = $query->condition($idKey, $ids, 'IN');
Expand Down

0 comments on commit 337b918

Please sign in to comment.