mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00

committed by
Sebastien Ros

parent
ceff51e65f
commit
71c5cae927
@@ -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();
|
||||
|
Reference in New Issue
Block a user