Doesn't work with Drupal 10

Created on 27 November 2023, 7 months ago
Updated 12 December 2023, 7 months ago

Access checking was introduced for Drupal 10: Access checking must be explicitly specified on content entity queries
https://www.drupal.org/node/3201242

Without it there is an error
Entity queries must explicitly set whether the query should be access checked or not. See Drupal\Core\Entity\Query\QueryInterface::accessCheck().

Can be fixed with
$fids = Drupal::entityQuery('file')->accessCheck(FALSE)->execute();

P.S. I like the simplicity of this module!

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇨🇿Czech Republic Bohus Ulrych Pilsen (Czechia)

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024