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
Этот коммит содержится в:
Andres Orozco
2019-05-23 16:03:22 -04:00
коммит произвёл Christopher Speller
родитель 693d11304b
Коммит 88005fbf54
7 изменённых файлов: 47 добавлений и 47 удалений

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

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