exclude paypig badges from badge_grant

master
Aevann1 2022-08-25 19:57:15 +02:00
parent 133cdee0b3
commit 3bff9489da
1 changed files with 1 additions and 1 deletions

View File

@ -531,7 +531,7 @@ def badge_grant_post(v):
try: badge_id = int(request.values.get("badge_id")) try: badge_id = int(request.values.get("badge_id"))
except: abort(400) except: abort(400)
if badge_id in {16,17,94,95,96,97,98,109,137} and v.id != AEVANN_ID: if badge_id in {16,17,21,22,23,24,25,26,27,94,95,96,97,98,109,137} and v.id != AEVANN_ID:
abort(403) abort(403)
if user.has_badge(badge_id): if user.has_badge(badge_id):