show blocked for admins

This commit is contained in:
Umputun
2018-03-18 18:14:30 -05:00
parent 61ed97d8ea
commit 244056f978
+5 -1
View File
@@ -138,7 +138,11 @@ func (a *admin) alterComments(comments []store.Comment, r *http.Request) (res []
// process blocked users
if a.dataService.IsBlocked(c.Locator.SiteID, c.User.ID) {
c.SetDeleted()
if !isAdmin {
c.SetDeleted()
} else {
c.Text += "\n\n*Blocked, visible for admins only*"
}
c.User.Blocked = true
}