Unverified Commit e6f2c319 authored by Mattermost Build's avatar Mattermost Build Committed by GitHub
Browse files

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

(cherry picked from commit 390cade7

)
Co-authored-by: default avatarCarlos Tadeu Panato Junior <carlos@mattermost.com>
parent 1090aa5c
......@@ -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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment