master
Aevann1 2021-12-14 00:00:46 +02:00
parent 5f39ec77e2
commit ded8022452
1 changed files with 3 additions and 2 deletions

View File

@ -47,8 +47,9 @@ def auth_desired(f):
v = get_logged_in_user() 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) check_ban_evade(v)
resp = make_response(f(*args, v=v, **kwargs)) resp = make_response(f(*args, v=v, **kwargs))