diff --git a/core/modules/book/book.module b/core/modules/book/book.module index b5d5515..75ef787 100644 --- a/core/modules/book/book.module +++ b/core/modules/book/book.module @@ -145,7 +145,7 @@ function book_form_node_form_alter(&$form, FormStateInterface $form_state, $form } } - if ($access) { + if ($access && book_type_is_allowed($node->getType())) { $collapsed = !($node->isNew() && !empty($node->book['pid'])); $form = \Drupal::service('book.manager')->addFormElements($form, $form_state, $node, $account, $collapsed); // The "js-hide" class hides submit button when Javascript is enabled.