Fix panic when receiving a config to update to if some settings are not set (#13889)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
5f7b5686a8
Коммит
dd1c8c22dc
@@ -57,6 +57,8 @@ func updateConfig(c *Context, w http.ResponseWriter, r *http.Request) {
|
||||
return
|
||||
}
|
||||
|
||||
cfg.SetDefaults()
|
||||
|
||||
if !c.App.SessionHasPermissionTo(*c.App.Session(), model.PERMISSION_MANAGE_SYSTEM) {
|
||||
c.SetPermissionError(model.PERMISSION_MANAGE_SYSTEM)
|
||||
return
|
||||
|
||||
Ссылка в новой задаче
Block a user