MM-52818 - create config setting to enable/disable playbooks product (#23508)
* create config setting to enable/disable playbooks product * fix to config name * fix typo * revert changes to package-lock.json * update name of test --------- Co-authored-by: Mattermost Build <build@mattermost.com>
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
3705d7af4d
Коммит
22275fa0f5
@@ -88,6 +88,10 @@ func (s *Server) shouldStart(product string) bool {
|
||||
s.Log().Warn("Skipping Playbooks start: disabled via env var")
|
||||
return false
|
||||
}
|
||||
if !*s.Config().ProductSettings.EnablePlaybooks {
|
||||
s.Log().Warn("Skipping Playbooks start: disabled via configuration")
|
||||
return false
|
||||
}
|
||||
}
|
||||
|
||||
return true
|
||||
|
||||
Ссылка в новой задаче
Block a user