Skip to content

Commit

Permalink
Merge pull request #296 from esmero/ISSUE-294
Browse files Browse the repository at this point in the history
ISSUE-294: Fix missing access check on entity query
  • Loading branch information
DiegoPino authored Jan 31, 2024
2 parents ff229bb + ad7cd37 commit 88714ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/StrawberryfieldFilePersisterService.php
Original file line number Diff line number Diff line change
Expand Up @@ -1080,7 +1080,7 @@ public function removeUsageFilesInJson(ContentEntityInterface $entity) {
$values = \Drupal::entityQuery($entity_type_id)->condition(
'nid',
$id
)->execute();
)->accessCheck(FALSE)->execute();
if (empty($values)) {
$this->remove_file_usage($file, $id, $entity_type_id, 0);
$orphaned++;
Expand Down

0 comments on commit 88714ca

Please sign in to comment.