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/story.module | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'modules/story.module') diff --git a/modules/story.module b/modules/story.module index f4366d0cb..5c84baa0d 100644 --- a/modules/story.module +++ b/modules/story.module @@ -65,6 +65,12 @@ function story_link($type) { function story_form(&$node, &$help, &$error) { + if (!$node->status) { + $node->status = 1; + $node->moderate = 1; + $node->comment = 2; + } + if (isset($node->body)) { /* -- cgit v1.2.3