Commit c2241ab6 authored by catch's avatar catch
Browse files

Issue #3202052 by jonathanshaw, andypost: EntityQuery accessCheck: Views...

Issue #3202052 by jonathanshaw, andypost: EntityQuery accessCheck: Views argument plugin ::titleQuery() should not be access sensitive
parent 84c8b1e1
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -58,6 +58,7 @@ public static function create(ContainerInterface $container, array $configuratio
  public function titleQuery() {
    $storage = $this->entityTypeManager->getStorage('file');
    $fids = $storage->getQuery()
      ->accessCheck(FALSE)
      ->condition('fid', $this->value, 'IN')
      ->execute();
    $files = $storage->loadMultiple($fids);
+1 −0
Original line number Diff line number Diff line
@@ -72,6 +72,7 @@ public function titleQuery() {
    $titles = [];

    $results = $this->nodeStorage->getAggregateQuery()
      ->accessCheck(FALSE)
      ->allRevisions()
      ->groupBy('title')
      ->execute();