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.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

apmsooner created an issue. See original summary.

  • apmsooner committed 45e265af on 1.0.x
    Issue #3365191 by apmsooner: Preview log query missing accessCheck()
    
apmsooner’s picture

Status: Active » Fixed
apmsooner’s picture

Status: Fixed » Closed (fixed)