From 616407465535c128eca2982a961284452fe2a855 Mon Sep 17 00:00:00 2001 From: Dries Buytaert <dries@buytaert.net> Date: Mon, 19 Dec 2005 10:12:52 +0000 Subject: [PATCH] - Patch #38999 by saerdna: There's no need that users with the "administer comments" role has to go via admin/comments to delete comments. this patch simply adds the delete link on each comment if you have administer comments role. "access administration pages" not needed; because if they not have it they can still delete from admin/comments. --- modules/comment.module | 2 +- modules/comment/comment.module | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/comment.module b/modules/comment.module index 387d29ae4885..6bd67757ce34 100644 --- a/modules/comment.module +++ b/modules/comment.module @@ -767,7 +767,7 @@ function comment_links($comment, $return = 1) { } if (node_comment_mode($comment->nid) == COMMENT_NODE_READ_WRITE) { - if (user_access('administer comments') && user_access('access administration pages')) { + if (user_access('administer comments') && user_access('post comments')) { $links[] = l(t('delete'), "comment/delete/$comment->cid"); $links[] = l(t('edit'), "comment/edit/$comment->cid"); $links[] = l(t('reply'), "comment/reply/$comment->nid/$comment->cid"); diff --git a/modules/comment/comment.module b/modules/comment/comment.module index 387d29ae4885..6bd67757ce34 100644 --- a/modules/comment/comment.module +++ b/modules/comment/comment.module @@ -767,7 +767,7 @@ function comment_links($comment, $return = 1) { } if (node_comment_mode($comment->nid) == COMMENT_NODE_READ_WRITE) { - if (user_access('administer comments') && user_access('access administration pages')) { + if (user_access('administer comments') && user_access('post comments')) { $links[] = l(t('delete'), "comment/delete/$comment->cid"); $links[] = l(t('edit'), "comment/edit/$comment->cid"); $links[] = l(t('reply'), "comment/reply/$comment->nid/$comment->cid"); -- GitLab