From 7b2a21783093f0c56f7c9cdf3a64340f6c9e7861 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Mon, 17 Jan 2022 20:38:15 +0200 Subject: [PATCH] vc --- files/routes/awards.py | 3 +++ files/templates/shop.html | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) 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 %}