summaryrefslogtreecommitdiff
path: root/modules/comment.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2005-12-19 10:12:52 +0000
committerDries Buytaert <dries@buytaert.net>2005-12-19 10:12:52 +0000
commit616407465535c128eca2982a961284452fe2a855 (patch)
treefa9d71a0b422954361d59948ca54ee55c0ae19ba /modules/comment.module
parentf8b5f21cf5c9d0c02c353a4f0233df775103b500 (diff)
downloadbrdo-616407465535c128eca2982a961284452fe2a855.tar.gz
brdo-616407465535c128eca2982a961284452fe2a855.tar.bz2
- 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.
Diffstat (limited to 'modules/comment.module')
-rw-r--r--modules/comment.module2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/comment.module b/modules/comment.module
index 387d29ae4..6bd67757c 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");