summaryrefslogtreecommitdiff
path: root/modules/node
diff options
context:
space:
mode:
authorKjartan Mannes <kjartan@2.no-reply.drupal.org>2002-05-29 17:16:27 +0000
committerKjartan Mannes <kjartan@2.no-reply.drupal.org>2002-05-29 17:16:27 +0000
commit000ee5d162b36d5cb5c74ef452c96882e749c3a4 (patch)
tree0349a0105a11cf4d08785fea97ebdcd026646b01 /modules/node
parent9a4a9befac732cc0810707126385fab46f09abdc (diff)
downloadbrdo-000ee5d162b36d5cb5c74ef452c96882e749c3a4.tar.gz
brdo-000ee5d162b36d5cb5c74ef452c96882e749c3a4.tar.bz2
- cleaning up the access checks in node.module.
- reverting a taxonomy patch that added $context checking to node/comments.
Diffstat (limited to 'modules/node')
-rw-r--r--modules/node/node.module12
1 files changed, 3 insertions, 9 deletions
diff --git a/modules/node/node.module b/modules/node/node.module
index e75660f55..cc9f63e98 100644
--- a/modules/node/node.module
+++ b/modules/node/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: