From 1d968eb55eae7f0f6db087c9e8466b11800b888a Mon Sep 17 00:00:00 2001 From: Joram Wilander Date: Wed, 25 Oct 2017 08:52:50 -0400 Subject: PLT-7849 Add config setting to disable plugin uploads (#7666) * Add config setting to disable plugin uploads * Update unit test --- model/config.go | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'model') diff --git a/model/config.go b/model/config.go index 4eee71737..493a432bb 100644 --- a/model/config.go +++ b/model/config.go @@ -511,9 +511,10 @@ type PluginState struct { } type PluginSettings struct { - Enable *bool - Plugins map[string]interface{} - PluginStates map[string]*PluginState + Enable *bool + EnableUploads *bool + Plugins map[string]interface{} + PluginStates map[string]*PluginState } type Config struct { @@ -1459,6 +1460,10 @@ func (o *Config) SetDefaults() { } if o.PluginSettings.Enable == nil { + o.PluginSettings.Enable = NewBool(true) + } + + if o.PluginSettings.EnableUploads == nil { o.PluginSettings.Enable = NewBool(false) } -- cgit v1.2.3-1-g7c22