PLT-7849 Add config setting to disable plugin uploads (#7666)
* Add config setting to disable plugin uploads * Update unit test
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
5474cff0eb
Коммит
1d968eb55e
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Ссылка в новой задаче
Block a user