show blocked for admins
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user