fixes mm-1239 adds config setting to turn off valet feature

Этот коммит содержится в:
JoramWilander
2015-06-15 08:45:02 -04:00
родитель b7a821c341
Коммит d390ec9bf2
5 изменённых файлов: 16 добавлений и 1 удалений

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

@@ -19,12 +19,16 @@ var commands = []commandHandler{
logoutCommand,
joinCommand,
loadTestCommand,
echoCommand,
}
func InitCommand(r *mux.Router) {
l4g.Debug("Initializing command api routes")
r.Handle("/command", ApiUserRequired(command)).Methods("POST")
if utils.Cfg.TeamSettings.AllowValet {
commands = append(commands, echoCommand)
}
hub.Start()
}