Entity queries must explicitly set whether the query should be access checked or not

Created on 10 October 2024, about 1 month ago

Followup to 🐛 Issue #3387026: Upgrade status fixes Fixed .

Problem/Motivation

Drupal\Core\Entity\Query\QueryException: Entity queries must explicitly set whether the query should be access checked or not. See Drupal\Core\Entity\Query\QueryInterface::accessCheck(). in Drupal\Core\Entity\Query\Sql\Query->prepare() (line 142 in /var/www/app/docroot/core/lib/Drupal/Core/Entity/Query/Sql/Query.php).
#0 /var/www/app/docroot/core/lib/Drupal/Core/Entity/Query/Sql/Query.php(81): Drupal\Core\Entity\Query\Sql\Query->prepare()
#1 /var/www/app/docroot/modules/contrib/bridtv/src/BridPlaylistSync.php(164): Drupal\Core\Entity\Query\Sql\Query->execute()

Steps to reproduce

Run Cron job to sync playlists

Proposed resolution

add $query->accessCheck(TRUE); to \Drupal\bridtv\BridEntityResolver::getEntityQuery().

See also https://git.drupalcode.org/project/bridtv/-/merge_requests/6/diffs?commi...

🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

🇩🇪Germany osopolar 🇩🇪 GER 🌐

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024