forked from rDrama/rDrama
1
0
Fork 0

allow permabannedcels to logout

master
Aevann 2023-09-14 23:04:30 +03:00
parent 1bd7a7a81c
commit 962c23c968
1 changed files with 1 additions and 1 deletions

View File

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