Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
commerce_baselinker
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
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
project
commerce_baselinker
Commits
d259eec6
Commit
d259eec6
authored
1 year ago
by
Damian Skiba
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3374298
: Add accessCheck() for D10
parent
53054fac
No related branches found
Branches containing commit
Tags
2.0.4
Tags containing commit
1 merge request
!4
Issue #3374298: Add accessCheck() for D10
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
modules/commerce_baselinker_ifirma/commerce_baselinker_ifirma.module
+1
-0
1 addition, 0 deletions
...merce_baselinker_ifirma/commerce_baselinker_ifirma.module
src/OrdersService.php
+1
-0
1 addition, 0 deletions
src/OrdersService.php
with
2 additions
and
0 deletions
modules/commerce_baselinker_ifirma/commerce_baselinker_ifirma.module
+
1
−
0
View file @
d259eec6
...
...
@@ -21,6 +21,7 @@ function commerce_baselinker_ifirma_cron() {
$entityTypeManager
=
\Drupal
::
service
(
'entity_type.manager'
);
$ordersToUpdate
=
$entityTypeManager
->
getStorage
(
'commerce_order'
)
->
getQuery
()
->
accessCheck
(
FALSE
)
->
condition
(
'update_invoice'
,
1
,
'='
)
->
execute
();
foreach
(
$ordersToUpdate
as
$revision
=>
$orderId
)
{
...
...
This diff is collapsed.
Click to expand it.
src/OrdersService.php
+
1
−
0
View file @
d259eec6
...
...
@@ -95,6 +95,7 @@ class OrdersService {
try
{
$query
=
$this
->
entityTypeManager
->
getStorage
(
'commerce_order'
)
->
getQuery
();
$query
->
accessCheck
(
FALSE
);
$query
->
condition
(
'state'
,
'completed'
,
'LIKE'
);
if
(
!
empty
(
$params
[
'time_from'
]))
{
$query
->
condition
(
'placed'
,
$params
[
'time_from'
],
'>='
);
...
...
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