forked from MarseyWorld/MarseyWorld
sdfsfd
parent
1894821b34
commit
5f39ec77e2
|
@ -46,6 +46,9 @@ def auth_desired(f):
|
|||
def wrapper(*args, **kwargs):
|
||||
|
||||
v = get_logged_in_user()
|
||||
|
||||
if request.host == 'old.rdrama.net' and not (v and v.admin_level): abort(403)
|
||||
|
||||
check_ban_evade(v)
|
||||
|
||||
resp = make_response(f(*args, v=v, **kwargs))
|
||||
|
@ -63,6 +66,8 @@ def auth_required(f):
|
|||
|
||||
if not v: abort(401)
|
||||
|
||||
if request.host == 'old.rdrama.net' and not v.admin_level: abort(403)
|
||||
|
||||
check_ban_evade(v)
|
||||
|
||||
g.v = v
|
||||
|
@ -82,6 +87,8 @@ def is_not_banned(f):
|
|||
|
||||
if not v: abort(401)
|
||||
|
||||
if request.host == 'old.rdrama.net' and not v.admin_level: abort(403)
|
||||
|
||||
check_ban_evade(v)
|
||||
|
||||
if v.is_suspended: return {"error": "You can't perform this action while being banned."}, 403
|
||||
|
|
Loading…
Reference in New Issue