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 144 of core/lib/Drupal/Core/Entity/Query/Sql/Query.php).
Hey guys I am working on the migration of one site (Moving Drupal 9 to 10), I am having this issue and the debug is reporting different modules into the core like: menu_link_content
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | core-patch.patch | 671 bytes | pepe2903 |
Comments
Comment #2
pepe2903 commentedFor time I am using a workaround because I need to move my site to production and the test can be completed with this. I will wait if here I can found other way to fix it.
Comment #3
cilefen commentedThat code is working as intended. The site has some queries without access checks.
Comment #4
larowlanPerhaps you have patches applied that are out of date
Comment #5
jasonawantI'm closing as outdated. Please set the status back to active if you still need support.