PLT-7849 Add config setting to disable plugin uploads (#7666)

* Add config setting to disable plugin uploads

* Update unit test
Этот коммит содержится в:
Joram Wilander
2017-10-25 08:52:50 -04:00
коммит произвёл GitHub
родитель 5474cff0eb
Коммит 1d968eb55e
5 изменённых файлов: 34 добавлений и 10 удалений

Просмотреть файл

@@ -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)
}