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
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:
Issue fork site_audit_server-3576622
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:
- 3576622-accesscheck-missing-on
compare
Comments
Comment #2
froboyComment #3
froboyComment #6
froboyOops. Duplicate of https://www.drupal.org/project/site_audit/issues/3404964