vc
This commit is contained in:
parent
0bc42b3307
commit
2c58219fd8
2 changed files with 4 additions and 1 deletions
|
@ -83,6 +83,9 @@ def shop(v):
|
|||
@app.post("/buy/<award>")
|
||||
@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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue