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/comment/comment.module | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'modules/comment/comment.module') diff --git a/modules/comment/comment.module b/modules/comment/comment.module index bd3e036d8..4fce79492 100644 --- a/modules/comment/comment.module +++ b/modules/comment/comment.module @@ -145,11 +145,9 @@ function comment_edit($cid) { } function comment_reply($pid, $nid) { - global $theme, $node; + global $theme; - // we must provide a taxonomy context for user_access() - $context->nid = $nid; - if (user_access("access comments", $context)) { + if (user_access("access comments")) { if ($pid) { $comment = db_fetch_object(db_query("SELECT c.*, u.uid, u.name FROM comments c LEFT JOIN users u ON c.uid = u.uid WHERE c.cid = '%s'", $pid)); comment_view($comment, t("reply to this comment")); -- cgit v1.2.3