accessCheck() method should be explicitly called In Drupal 10 for all entity queries otherwise, an exception will be thrown.
See
https://www.drupal.org/node/3201242 →
Add explicit call of accessCheck() on every entity query.
Needs review
3.0
Code