Skip to content
Snippets Groups Projects
Commit e0747fb8 authored by Michael Stenta's avatar Michael Stenta
Browse files

Issue #3509508: Disable access checking in...

Issue #3509508: Disable access checking in EntityReferenceIntegrityEntityHandler::referentialEntityQuery()
parent cd94b889
Branches
Tags
1 merge request!13Do not install system sequences schema in kernel tests.
Pipeline #437732 passed
......@@ -113,7 +113,7 @@ class EntityReferenceIntegrityEntityHandler implements EntityHandlerInterface, E
* A query object.
*/
protected function referentialEntityQuery($entity_type, array $source_fields, $target_id) {
$query = $this->entityTypeManager->getStorage($entity_type)->getQuery()->accessCheck(TRUE);
$query = $this->entityTypeManager->getStorage($entity_type)->getQuery()->accessCheck(FALSE);
$or_group = $query->orConditionGroup();
foreach ($source_fields as $source_field) {
$or_group->condition($source_field, $target_id, '=');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment