#20345: Adding a notification on a new comment

Work Item: 20345
This commit is contained in:
planetClaire
2013-12-10 13:07:57 +08:00
committed by Sebastien Ros
parent ceff51e65f
commit 71c5cae927

View File

@@ -118,11 +118,15 @@ namespace Orchard.Comments.Controllers {
// if the user who submitted the comment has the right to moderate, don't make this comment moderated
if (Services.Authorizer.Authorize(Permissions.ManageComments)) {
commentPart.Status = CommentStatus.Approved;
Services.Notifier.Information(T("Your comment has been posted."));
}
else {
Services.Notifier.Information(T("Your comment will appear after the site administrator approves it."));
}
}
else {
Services.Notifier.Information(T("Your comment has been posted."));
}
}
else {
Services.TransactionManager.Cancel();