Commit f91cfba3 authored by webchick's avatar webchick

#302438 by maartenvg and cwgordon7: Only show the 'queued for approval'...

#302438 by maartenvg and cwgordon7: Only show the 'queued for approval' message for non-administrators.
parent 1b4dd805
......@@ -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.'));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment