Issue #3202052 by jonathanshaw, andypost: EntityQuery accessCheck: Views argument plugin ::titleQuery() should not be access sensitive

merge-requests/514/head
catch 2021-04-08 09:04:44 +01:00
parent 84c8b1e1d9
commit c2241ab659
2 changed files with 2 additions and 0 deletions

View File

@ -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);

View File

@ -72,6 +72,7 @@ class Vid extends NumericArgument {
$titles = [];
$results = $this->nodeStorage->getAggregateQuery()
->accessCheck(FALSE)
->allRevisions()
->groupBy('title')
->execute();