diff --git a/core/modules/book/book.module b/core/modules/book/book.module index ecccb74..10e4d4e 100644 --- a/core/modules/book/book.module +++ b/core/modules/book/book.module @@ -415,7 +415,7 @@ function template_preprocess_book_navigation(&$variables) { /** @var \Drupal\book\BookManagerInterface $book_manager */ $book_manager = \Drupal::service('book.manager'); - if ($book_link['pid'] && $parent = $book_manager->loadBookLink($book_link['pid'])) { + if ($book_link['pid'] && ($parent = $book_manager->loadBookLink($book_link['pid'])) && !empty($parent['access'])) { $parent_href = \Drupal::url('entity.node.canonical', array('node' => $book_link['pid'])); $build['#attached']['html_head_link'][][] = array( 'rel' => 'up',