Issue #3202052 by jonathanshaw, andypost: EntityQuery accessCheck: Views argument plugin ::titleQuery() should not be access sensitive
parent
84c8b1e1d9
commit
c2241ab659
|
@ -58,6 +58,7 @@ class Fid extends NumericArgument implements ContainerFactoryPluginInterface {
|
|||
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 @@ class Vid extends NumericArgument {
|
|||
$titles = [];
|
||||
|
||||
$results = $this->nodeStorage->getAggregateQuery()
|
||||
->accessCheck(FALSE)
|
||||
->allRevisions()
|
||||
->groupBy('title')
|
||||
->execute();
|
||||
|
|
Loading…
Reference in New Issue