mirror of
https://github.com/discourse/discourse.git
synced 2025-06-02 03:15:43 +08:00
Move comment to the right place.
This commit is contained in:
@ -117,9 +117,6 @@ module SiteSettingExtension
|
||||
hidden_settings << name
|
||||
end
|
||||
|
||||
# You can "shadow" a site setting with a GlobalSetting. If the GlobalSetting
|
||||
# exists it will be used instead of the setting and the setting will be hidden.
|
||||
# Useful for things like API keys on multisite.
|
||||
if opts[:shadowed_by_global] && GlobalSetting.respond_to?(name)
|
||||
val = GlobalSetting.send(name)
|
||||
unless val.nil? || (val == ''.freeze)
|
||||
|
Reference in New Issue
Block a user