diff --git a/files/routes/awards.py b/files/routes/awards.py index 95c545ced..483ee4901 100644 --- a/files/routes/awards.py +++ b/files/routes/awards.py @@ -83,6 +83,9 @@ def shop(v): @app.post("/buy/") @auth_required def buy(v, award): + if award == 'benefactor' and not request.values.get("mb"): + return {"error": "You can only buy this award with marseybux."}, 403 + AWARDS = deepcopy(AWARDS2) if award not in AWARDS: abort(400) diff --git a/files/templates/shop.html b/files/templates/shop.html index 11bd77da4..03fc9e793 100644 --- a/files/templates/shop.html +++ b/files/templates/shop.html @@ -63,7 +63,7 @@ {{a['owned']}} {% set kind = a['kind'] %} - Buy + {% if a['kind'] != "benefactor" %}Buy{% endif %} {% if a['kind'] != "grass" %}Buy with Marseybux{% endif %}