diff --git a/lib/site_setting_extension.rb b/lib/site_setting_extension.rb index 6822dcb611a..83172f10325 100644 --- a/lib/site_setting_extension.rb +++ b/lib/site_setting_extension.rb @@ -406,6 +406,8 @@ module SiteSettingExtension set(name, value) value = prev_value = "[FILTERED]" if secret_settings.include?(name.to_sym) StaffActionLogger.new(user).log_site_setting_change(name, prev_value, value) + else + raise Discourse::InvalidParameters end end