Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
rules-3471699
Manage
Activity
Members
Labels
Plan
Custom issue tracker
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Issue forks
rules-3471699
Commits
09209046
Commit
09209046
authored
1 year ago
by
Kostia Bohach
Committed by
Tim Rohaly
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
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
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/Plugin/RulesAction/EntityFetchByField.php
+1
-0
1 addition, 0 deletions
src/Plugin/RulesAction/EntityFetchByField.php
tests/src/Unit/Integration/RulesAction/EntityFetchByFieldTest.php
+3
-0
3 additions, 0 deletions
...c/Unit/Integration/RulesAction/EntityFetchByFieldTest.php
with
4 additions
and
0 deletions
src/Plugin/RulesAction/EntityFetchByField.php
+
1
−
0
View file @
09209046
...
...
@@ -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
();
...
...
This diff is collapsed.
Click to expand it.
tests/src/Unit/Integration/RulesAction/EntityFetchByFieldTest.php
+
3
−
0
View file @
09209046
...
...
@@ -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
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment