summaryrefslogtreecommitdiff
path: root/modules/comment.module
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/comment.module
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/comment.module')
-rw-r--r--modules/comment.module6
1 files changed, 2 insertions, 4 deletions
diff --git a/modules/comment.module b/modules/comment.module
index bd3e036d8..4fce79492 100644
--- a/modules/comment.module
+++ b/modules/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"));