Problem/Motivation

Visiting /admin/reports/site-audit/reports throws an error.

Steps to reproduce

Visit /admin/reports/site-audit/reports with Drupal 10 or 11
Observe the 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 142 of core/lib/Drupal/Core/Entity/Query/Sql/Query.php).

Proposed resolution

Add an access check to SiteAuditReportListBuilder.php

Remaining tasks

User interface changes

API changes

Data model changes

Issue fork site_audit-3576622

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:

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

froboy created an issue. See original summary.

froboy’s picture

Project: Site Audit Server » Site Audit
Version: 4.x-dev » 4.0.x-dev
froboy’s picture

Version: 4.0.x-dev » 4.x-dev

froboy changed the visibility of the branch 3576622-accesscheck-missing-on to hidden.

froboy’s picture

Status: Active » Closed (duplicate)

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.