master
Aevann1 2021-12-15 21:33:40 +02:00
parent b8350f1aba
commit 06103e07b6
1 changed files with 3 additions and 3 deletions

View File

@ -48,7 +48,7 @@ def auth_desired(f):
v = get_logged_in_user()
if request.host == 'old.rdrama.net' and not (v and v.admin_level) and '/log' not in request.path:
return redirect(request.full_path.replace('https://old.','https://'))
return redirect(request.full_path.replace('old.',''))
check_ban_evade(v)
resp = make_response(f(*args, v=v, **kwargs))
@ -67,7 +67,7 @@ def auth_required(f):
if not v: abort(401)
if request.host == 'old.rdrama.net' and not v.admin_level:
return redirect(request.full_path.replace('https://old.','https://'))
return redirect(request.full_path.replace('old.',''))
check_ban_evade(v)
@ -89,7 +89,7 @@ def is_not_banned(f):
if not v: abort(401)
if request.host == 'old.rdrama.net' and not v.admin_level:
return redirect(request.full_path.replace('https://old.','https://'))
return redirect(request.full_path.replace('old.',''))
check_ban_evade(v)
if v.is_suspended: return {"error": "You can't perform this action while being banned."}, 403