Problem/Motivation
If you try to reindex the backlinks in admin/config/content/backlinks there's a php 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() (regel 141 van web/core/lib/Drupal/Core/Entity/Query/Sql/Query.php).
Access checking must be explicitly specified on content entity queries.
Steps to reproduce
- Go to admin/config/content/backlinks
- Check some content types
- Hit re-index button
Proposed resolution
Add ->accessCheck(FALSE) to query's in BacklinksScanBatch.php
Remaining tasks
Create MR (i'll try to fix it today but last hours before vacation).
Comments
Comment #3
groendijk commentedComment #4
groendijk commentedComment #6
matej.lehotsky commentedComment #7
matej.lehotsky commentedComment #8
groendijk commentedThanks for fast merging!
Comment #9
groendijk commented