diff options
Diffstat (limited to 'modules/comment/comment.module')
-rw-r--r-- | modules/comment/comment.module | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/comment/comment.module b/modules/comment/comment.module index 1539e2d80..f50dc01d1 100644 --- a/modules/comment/comment.module +++ b/modules/comment/comment.module @@ -156,7 +156,7 @@ function comment_block($op = 'list', $delta = 0) { $blocks[0]['info'] = t('Recent comments'); return $blocks; } - else if (user_access('access comments')) { + else if ($op == 'view' && user_access('access comments')) { $result = db_query_range('SELECT * FROM {comments} WHERE status = 0 ORDER BY timestamp DESC', 0, 10); $items = array(); while ($comment = db_fetch_object($result)) { |