mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 04:11:12 +08:00
Add specs to hidding settings when shadowed by a global.
This commit is contained in:
@ -119,6 +119,7 @@ module SiteSettingExtension
|
||||
|
||||
if opts[:shadowed_by_global] && GlobalSetting.respond_to?(name)
|
||||
val = GlobalSetting.send(name)
|
||||
|
||||
unless val.nil? || (val == ''.freeze)
|
||||
hidden_settings << name
|
||||
shadowed_settings << name
|
||||
|
Reference in New Issue
Block a user