summaryrefslogtreecommitdiff
path: root/modules/comment/comment.module
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2008-11-23 16:04:41 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2008-11-23 16:04:41 +0000
commitf91cfba34f045c6dd2ca7a2fc48b9df1496f4e74 (patch)
tree92a8b23e38b71d8add7bca338625df6c7e9069c1 /modules/comment/comment.module
parent1b4dd805ca9ebcf34815f480533a1069ba63b7e3 (diff)
downloadbrdo-f91cfba34f045c6dd2ca7a2fc48b9df1496f4e74.tar.gz
brdo-f91cfba34f045c6dd2ca7a2fc48b9df1496f4e74.tar.bz2
#302438 by maartenvg and cwgordon7: Only show the 'queued for approval' message for non-administrators.
Diffstat (limited to 'modules/comment/comment.module')
-rw-r--r--modules/comment/comment.module4
1 files changed, 3 insertions, 1 deletions
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.'));