admin/logs: Check if the license allows the cluster mode (#15138)

Этот коммит содержится в:
Carlos Tadeu Panato Junior
2020-07-31 12:05:44 +02:00
коммит произвёл 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)