Preview log query missing accessCheck()

Created on 6 June 2023, almost 2 years ago

Problem/Motivation

Visiting preview log in Drupal 10 results in error:
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 141 of core/lib/Drupal/Core/Entity/Query/Sql/Query.php).

Steps to reproduce

In D10 site visit admin route: /admin/config/services/simple_decoupled_preview/preview/logs

Proposed resolution

Add accessCheck(FALSE) to getEntityIds() in PreviewLogEntityListBuilder.php.

Remaining tasks

Provide patch.

πŸ› Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States apmsooner

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

Comments & Activities

Production build 0.71.5 2024