diff --git a/files/routes/wrappers.py b/files/routes/wrappers.py index 41aa79db13..cd8bf93c61 100644 --- a/files/routes/wrappers.py +++ b/files/routes/wrappers.py @@ -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__