From 5f6d733b70cdc374053e1e415d225008e04bbef4 Mon Sep 17 00:00:00 2001 From: Kjartan Mannes Date: Wed, 22 May 2002 23:28:48 +0000 Subject: - node security fixes. - fixing the UI to represent what actually happens when you are an admin. --- modules/book.module | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'modules/book.module') diff --git a/modules/book.module b/modules/book.module index 925261196..055b3681e 100644 --- a/modules/book.module +++ b/modules/book.module @@ -170,6 +170,12 @@ function book_delete(&$node) { function book_form(&$node, &$help, &$error) { global $user, $op; + if (!$node->status) { + $node->status = 1; + $node->moderate = 1; + $node->comment = 2; + } + $output .= form_select(t("Parent"), "parent", $node->parent, book_toc(), t("The parent subject or category the page belongs in.")); if ($node->format) { -- cgit v1.2.3