badge remove
This commit is contained in:
parent
0c3dd0cc42
commit
1559bfd8c1
1 changed files with 13 additions and 11 deletions
|
@ -676,7 +676,9 @@ def badge_remove_post(v):
|
|||
except: abort(400)
|
||||
|
||||
badge = user.has_badge(badge_id)
|
||||
if badge:
|
||||
if not badge:
|
||||
return render_template("admin/badge_remove.html", v=v, badge_types=badges, error="User doesn't have that badge.")
|
||||
|
||||
ma = ModAction(
|
||||
kind="badge_remove",
|
||||
user_id=v.id,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue