From 000ee5d162b36d5cb5c74ef452c96882e749c3a4 Mon Sep 17 00:00:00 2001 From: Kjartan Mannes Date: Wed, 29 May 2002 17:16:27 +0000 Subject: - cleaning up the access checks in node.module. - reverting a taxonomy patch that added $context checking to node/comments. --- modules/node.module | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) (limited to 'modules/node.module') diff --git a/modules/node.module b/modules/node.module index e75660f55..cc9f63e98 100644 --- a/modules/node.module +++ b/modules/node.module @@ -1007,15 +1007,9 @@ function node_preview($node, $error = NULL) { } function node_submit($node) { - global $theme, $user, $tid; - - if (!user_access("post content")) { - return message_access(); - } - - $context->tid = $tid; - - if (user_access("post content", $context)) { + global $user, $theme; + + if (user_access("post content")) { /* ** Fixup the node when required: -- cgit v1.2.3