don't let shadowbanned users create holes
parent
c13acca044
commit
591fe9721f
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue