forked from rDrama/rDrama
allow permabannedcels to logout
parent
1bd7a7a81c
commit
962c23c968
|
@ -139,7 +139,7 @@ def auth_required(f):
|
|||
v = get_logged_in_user()
|
||||
if not v:
|
||||
abort(401, "You need to login to perform this action!")
|
||||
if v.is_permabanned and request.method == "POST" and request.path not in {'/contact','/reply'} and not request.path.startswith('/delete/'):
|
||||
if v.is_permabanned and request.method == "POST" and request.path not in {'/contact','/reply','/logout'} and not request.path.startswith('/delete/'):
|
||||
abort(403, "You can't perform this action while permabanned!")
|
||||
return make_response(f(*args, v=v, **kwargs))
|
||||
wrapper.__name__ = f.__name__
|
||||
|
|
Loading…
Reference in New Issue