forked from MarseyWorld/MarseyWorld
dfs
parent
67d807f5b4
commit
d0f0e2bad2
|
@ -621,7 +621,8 @@ def badge_grant_post(v):
|
|||
try: badge_id = int(request.values.get("badge_id"))
|
||||
except: abort(400)
|
||||
|
||||
if badge_id in {16,17,94,95,96,97,98,109}: abort(403)
|
||||
if badge_id in {16,17,94,95,96,97,98,109} and v.id != AEVANN_ID:
|
||||
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.")
|
||||
|
|
Loading…
Reference in New Issue