From 06dde947f2fa0c67d883fcadd454977e1f3a5e74 Mon Sep 17 00:00:00 2001 From: Aevann Date: Fri, 15 Nov 2024 17:24:52 +0200 Subject: [PATCH] do this https://rdrama.net/h/changelog/post/165657/changelog-megathread-marseynotes/7337394#context --- files/routes/wrappers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/routes/wrappers.py b/files/routes/wrappers.py index 5cf608ef6..eb3f0907e 100644 --- a/files/routes/wrappers.py +++ b/files/routes/wrappers.py @@ -156,7 +156,7 @@ def auth_required(f): v = get_logged_in_user() if not v: stop(401, "You need to login to perform this action!") - if v.is_permabanned and request.method == "POST" and request.path not in {'/contact','/reply','/logout'} and not request.path.startswith('/delete/'): + if v.is_permabanned and request.method == "POST" and request.path not in {'/contact','/reply','/logout','/settings/delete_account'} and not request.path.startswith('/delete/'): stop(403, "You can't perform this action while permabanned!") if request.path.startswith('/@deleted~') and v.admin_level < PERMS['VIEW_DELETED_ACCOUNTS']: