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

CommentFileSizeAuthor
#2 core-patch.patch671 bytespepe2903

Comments

pepe2903 created an issue. See original summary.

pepe2903’s picture

StatusFileSize
new671 bytes

For 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.

cilefen’s picture

Category: Bug report » Support request
Priority: Minor » Normal

That code is working as intended. The site has some queries without access checks.

larowlan’s picture

Perhaps you have patches applied that are out of date

jasonawant’s picture

Status: Active » Closed (outdated)

I'm closing as outdated. Please set the status back to active if you still need support.