Permalink
Browse files

Fixes #43 - Don't error when blacklisting blacklisted item

  • Loading branch information...
lfkeitel committed Mar 29, 2018
1 parent f598a41 commit fc6de6fbda740f3b519ce9cdea1f0a1b93c74930
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/controllers/api/blacklist.go
@@ -50,7 +50,7 @@ func (b *Blacklist) BlacklistUserHandler(w http.ResponseWriter, r *http.Request,
return
}
if r.Method == "POST" {
if r.Method == "POST" && !user.IsBlacklisted() {
user.Blacklist()
} else if r.Method == "DELETE" {
user.Unblacklist()

0 comments on commit fc6de6f

Please sign in to comment.