From ded80224522b383abb4d38eca8b30a570f29554c Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Tue, 14 Dec 2021 00:00:46 +0200 Subject: [PATCH] fsdfsd --- files/helpers/wrappers.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/files/helpers/wrappers.py b/files/helpers/wrappers.py index 29d7ea1f1..ad1e4db5f 100644 --- a/files/helpers/wrappers.py +++ b/files/helpers/wrappers.py @@ -47,8 +47,9 @@ def auth_desired(f): v = get_logged_in_user() - if request.host == 'old.rdrama.net' and not (v and v.admin_level): abort(403) - + if request.host == 'old.rdrama.net' and not (v and v.admin_level): + if request.headers.get("Authorization"): return {"error": "403 Forbidden"}, 403 + else: return render_template('errors/403.html', v=v), 403 check_ban_evade(v) resp = make_response(f(*args, v=v, **kwargs))