don't let shadowbanned users create holes

remotes/1693176582716663532/tmp_refs/heads/watchparty
justcool393 2022-10-03 01:18:06 -07:00 committed by GitHub
parent c13acca044
commit 591fe9721f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -362,8 +362,8 @@ def create_sub2(v):
return render_template("sub/create_hole.html", v=v, cost=HOLE_COST, error="You don't have enough coins!"), 403
v.coins -= HOLE_COST
g.db.add(v)
if v.shadowbanned: return {"error": "Internal Server Error"}, 500
sub = Sub(name=name)
g.db.add(sub)