Skip to content
Snippets Groups Projects
Commit 09209046 authored by Kostia Bohach's avatar Kostia Bohach Committed by Tim Rohaly
Browse files

Issue #3368140 by _shY: D10. Check access by default is deprecated

parent b1069411
No related branches found
No related tags found
No related merge requests found
......@@ -116,6 +116,7 @@ class EntityFetchByField extends RulesActionBase implements ContainerFactoryPlug
else {
$query = $storage->getQuery();
$entity_ids = $query
->accessCheck(TRUE)
->condition($field_name, $field_value, '=')
->range(0, $limit)
->execute();
......
......@@ -95,6 +95,9 @@ class EntityFetchByFieldTest extends RulesEntityIntegrationTestBase {
// Create dummy query object.
$query = $this->prophesize(QueryInterface::class);
$query->accessCheck(TRUE)
->willReturn($query->reveal())
->shouldBeCalledTimes(1);
$query->condition($field_name, $field_value, '=')
->willReturn($query->reveal())
->shouldBeCalledTimes(1);
......
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