Skip to content

Commit

Permalink
禁止被禁言用户回复
Browse files Browse the repository at this point in the history
  • Loading branch information
jimmykuu committed Jun 1, 2016
1 parent c0b82e0 commit c23d8a4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions comment.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@ func commentHandler(handler *Handler) {
}

user, _ := currentUser(handler)

if user.IsBlocked {
handler.Redirect("/user/blocked")
return
}

contentIdStr := handler.param("contentId")
contentId := bson.ObjectIdHex(contentIdStr)

Expand Down

0 comments on commit c23d8a4

Please sign in to comment.