mirror of
https://github.com/discourse/discourse.git
synced 2024-11-26 12:03:45 +08:00
Correct regression, correctly raise exception when setting incorrect param
This commit is contained in:
parent
c8418595bf
commit
20f84a364b
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user