Skip to content
Snippets Groups Projects
Commit 7b7fe776 authored by kristiaanvandeneynde's avatar kristiaanvandeneynde Committed by Sascha Grossenbacher
Browse files

Issue #3134160 by kristiaanvandeneynde: Support all operations in query access alters

parent 2782102e
No related branches found
No related tags found
No related merge requests found
......@@ -103,7 +103,7 @@ class EntityQueryAlter implements ContainerInjectionInterface {
/** @var \Drupal\entity\QueryAccess\QueryAccessHandlerInterface $query_access */
$query_access = $this->entityTypeManager->getHandler($entity_type_id, 'query_access');
$conditions = $query_access->getConditions('view');
$conditions = $query_access->getConditions($query->getMetaData('op') ?: 'view');
if ($conditions->isAlwaysFalse()) {
$query->where('1 = 0');
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment