summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modules/comment.module2
-rw-r--r--modules/comment/comment.module2
2 files changed, 2 insertions, 2 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");
diff --git a/modules/comment/comment.module b/modules/comment/comment.module
index 387d29ae4..6bd67757c 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");