From d26294de5c5f46216c693a25d6ba6550752fdb56 Mon Sep 17 00:00:00 2001 From: justcool393 Date: Sun, 6 Nov 2022 06:33:25 -0600 Subject: [PATCH] don't attempt to set the filter if not in the request --- files/routes/settings.py | 1 + 1 file changed, 1 insertion(+) diff --git a/files/routes/settings.py b/files/routes/settings.py index 4407a2559..105105282 100644 --- a/files/routes/settings.py +++ b/files/routes/settings.py @@ -51,6 +51,7 @@ def settings_profile_post(v): return False def update_flag_with_permanence(column_name:str, request_name:str, friendly_name:str, badge_id:Optional[int]): + if not request.values.get(request_name): return False current_value = getattr(v, column_name) if FEATURES['USERS_PERMANENT_WORD_FILTERS'] and current_value > 1: abort(403, "Cannot disable the word filter after you've already set it permanently!")