Correct regression, correctly raise exception when setting incorrect param

This commit is contained in:
Sam Saffron 2019-05-07 09:48:14 +10:00
parent c8418595bf
commit 20f84a364b

View File

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