don't allow banned users to join

master
justcool393 2022-10-09 00:34:22 -07:00
parent d8927294f4
commit 52472b838d
1 changed files with 2 additions and 1 deletions

View File

@ -21,8 +21,9 @@ def join_discord(v):
@app.get("/discord_redirect") @app.get("/discord_redirect")
@auth_required @is_not_permabanned
def discord_redirect(v): def discord_redirect(v):
if v.shadowbanned: abort(400)
now = int(time.time()) now = int(time.time())
state = request.values.get('state') state = request.values.get('state')
if not state or not '.' in state: abort(400) if not state or not '.' in state: abort(400)