fixes mm-1239 adds config setting to turn off valet feature
Этот коммит содержится в:
@@ -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()
|
||||
}
|
||||
|
||||
|
||||
Ссылка в новой задаче
Block a user