admin/logs: Check if the license allows the cluster mode (#15138)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
ef934c5c30
Коммит
390cade7fe
@@ -22,7 +22,9 @@ import (
|
||||
|
||||
func (s *Server) GetLogs(page, perPage int) ([]string, *model.AppError) {
|
||||
var lines []string
|
||||
if s.Cluster != nil && *s.Config().ClusterSettings.Enable {
|
||||
|
||||
license := s.License()
|
||||
if license != nil && *license.Features.Cluster && s.Cluster != nil && *s.Config().ClusterSettings.Enable {
|
||||
lines = append(lines, "-----------------------------------------------------------------------------------------------------------")
|
||||
lines = append(lines, "-----------------------------------------------------------------------------------------------------------")
|
||||
lines = append(lines, s.Cluster.GetMyClusterInfo().Hostname)
|
||||
|
||||
Ссылка в новой задаче
Block a user