From e3c26a0e89253fb626515831d8468050e6235d89 Mon Sep 17 00:00:00 2001 From: Christopher Speller Date: Mon, 9 Jul 2018 07:25:57 -0700 Subject: Adding ability for plugin system to respect the defaults listed in the plugin manifest. (#9066) --- model/config.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'model/config.go') diff --git a/model/config.go b/model/config.go index 7105af893..652b0ebf2 100644 --- a/model/config.go +++ b/model/config.go @@ -1717,7 +1717,7 @@ type PluginSettings struct { EnableUploads *bool Directory *string ClientDirectory *string - Plugins map[string]interface{} + Plugins map[string]map[string]interface{} PluginStates map[string]*PluginState } @@ -1747,7 +1747,7 @@ func (s *PluginSettings) SetDefaults() { } if s.Plugins == nil { - s.Plugins = make(map[string]interface{}) + s.Plugins = make(map[string]map[string]interface{}) } if s.PluginStates == nil { -- cgit v1.2.3-1-g7c22