From f91cfba34f045c6dd2ca7a2fc48b9df1496f4e74 Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Sun, 23 Nov 2008 16:04:41 +0000 Subject: #302438 by maartenvg and cwgordon7: Only show the 'queued for approval' message for non-administrators. --- modules/comment/comment.module | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'modules/comment/comment.module') diff --git a/modules/comment/comment.module b/modules/comment/comment.module index 7394eaa52..d3f327bbc 100644 --- a/modules/comment/comment.module +++ b/modules/comment/comment.module @@ -820,7 +820,9 @@ function comment_save($edit) { // Explain the approval queue if necessary, and then // redirect the user to the node he's commenting on. if ($edit['status'] == COMMENT_NOT_PUBLISHED) { - drupal_set_message(t('Your comment has been queued for moderation by site administrators and will be published after approval.')); + if (!user_access('administer comments')) { + drupal_set_message(t('Your comment has been queued for moderation by site administrators and will be published after approval.')); + } } else { drupal_set_message(t('Your comment has been posted.')); -- cgit v1.2.3