Commit c2241ab6 authored by catch's avatar catch

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
......@@ -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);
......
......@@ -72,6 +72,7 @@ public function titleQuery() {
$titles = [];
$results = $this->nodeStorage->getAggregateQuery()
->accessCheck(FALSE)
->allRevisions()
->groupBy('title')
->execute();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment