Needs review
Project:
Business Rules
Version:
3.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
20 Mar 2024 at 08:44 UTC
Updated:
25 Mar 2024 at 19:05 UTC
Jump to comment: Most recent
accessCheck() is missing on deleteEntity
delete node(s) with business rules.
in : src/Plugin/BusinessRulesAction/DeleteEntity.php
on line 60 :
- $ids = $query->execute();
+ $ids = $query->accessCheck()->execute();
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #4
dineshkumarbollu commentedAccess checking must be explicitly specified on content entity queries, see https://www.drupal.org/node/3201242
Comment #5
raveen_thakur51 commented@Yes, accessCheck() to your query ensures that only data accessible to the current user based on their permissions is returned, enhancing the security.
** MR! has quickfix & can be merged.
Thank you
Comment #6
rcodinaThanks!