summaryrefslogtreecommitdiffstats
path: root/app/cluster_discovery.go
diff options
context:
space:
mode:
Diffstat (limited to 'app/cluster_discovery.go')
-rw-r--r--app/cluster_discovery.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/app/cluster_discovery.go b/app/cluster_discovery.go
index 6418ab2be..2682425f5 100644
--- a/app/cluster_discovery.go
+++ b/app/cluster_discovery.go
@@ -9,7 +9,6 @@ import (
l4g "github.com/alecthomas/log4go"
"github.com/mattermost/mattermost-server/model"
- "github.com/mattermost/mattermost-server/utils"
)
const (
@@ -80,7 +79,7 @@ func (me *ClusterDiscoveryService) Stop() {
}
func (a *App) IsLeader() bool {
- if utils.IsLicensed() && *a.Config().ClusterSettings.Enable && a.Cluster != nil {
+ if a.License() != nil && *a.Config().ClusterSettings.Enable && a.Cluster != nil {
return a.Cluster.IsLeader()
} else {
return true