MM-15662: Rename "CreateBotAccounts" config.json setting to "EnableBotAccountCreation" (#10875)
* MM-15662 change conflig flag to EnableBotAccountCreation * undo changes to i18n * MM-15662: Change config flag for bot creation adds newline to i18n * MM-15662 Update diagnostics.go to use new config flag
Этот коммит содержится в:
коммит произвёл
Christopher Speller
родитель
693d11304b
Коммит
88005fbf54
@@ -43,7 +43,7 @@ func createBot(c *Context, w http.ResponseWriter, r *http.Request) {
|
||||
}
|
||||
}
|
||||
|
||||
if !*c.App.Config().ServiceSettings.CreateBotAccounts {
|
||||
if !*c.App.Config().ServiceSettings.EnableBotAccountCreation {
|
||||
c.Err = model.NewAppError("createBot", "api.bot.create_disabled", nil, "", http.StatusForbidden)
|
||||
return
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user