This commit is contained in:
Aevann1 2022-02-01 06:44:05 +02:00
parent 8c82f7c1bb
commit 413e777479
4 changed files with 26 additions and 9 deletions

View file

@ -434,6 +434,8 @@ def badge_grant_post(v):
try: badge_id = int(request.values.get("badge_id"))
except: abort(400)
if badge_id in (94,95,96,97,98,109): abort(403)
if user.has_badge(badge_id):
return render_template("admin/badge_grant.html", v=v, badge_types=badges, error="User already has that badge.")