Merge pull request #131 from Aevann1/master

fsdfsd
master
Aevann1 2021-12-13 14:01:09 -08:00 committed by GitHub
commit 006b727aaa
1 changed files with 3 additions and 2 deletions

View File

@ -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))