Skip to content
Snippets Groups Projects
Commit 5537c6ef authored by Rahul Tiwary's avatar Rahul Tiwary Committed by Adriano
Browse files

Issue #3289140 by jorielsaikali, rahul17: Automated Drupal 10 compatibility fixes

parent ca96e125
No related branches found
No related tags found
No related merge requests found
......@@ -64,7 +64,7 @@ class PrevNextService implements PrevNextServiceInterface {
$query = $this->entityTypeManager->getStorage('node')->getQuery();
$bundle = $node->bundle();
$langcode = $node->language()->getId();
$nodes = $query->condition('status', NodeInterface::PUBLISHED)
$nodes = $query->accessCheck(FALSE)->condition('status', NodeInterface::PUBLISHED)
->condition('type', $bundle)
->condition('langcode', $langcode)
->addMetaData('type', $bundle)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment