forked from rDrama/rDrama
fsdfsd
parent
5f39ec77e2
commit
ded8022452
|
@ -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))
|
||||||
|
|
Loading…
Reference in New Issue