From 52472b838d301e199b5a37f37a5004a7ac2ccff1 Mon Sep 17 00:00:00 2001 From: justcool393 Date: Sun, 9 Oct 2022 00:34:22 -0700 Subject: [PATCH] don't allow banned users to join --- files/routes/discord.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/files/routes/discord.py b/files/routes/discord.py index b9d8c353f..2d2f31cc7 100644 --- a/files/routes/discord.py +++ b/files/routes/discord.py @@ -21,8 +21,9 @@ def join_discord(v): @app.get("/discord_redirect") -@auth_required +@is_not_permabanned def discord_redirect(v): + if v.shadowbanned: abort(400) now = int(time.time()) state = request.values.get('state') if not state or not '.' in state: abort(400)