summaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
authorCorey Hulen <corey@hulen.com>2017-08-16 11:28:48 -0700
committerGitHub <noreply@github.com>2017-08-16 11:28:48 -0700
commit4f85ed985d478ddf6692fa4f7d8d98d2a412d18c (patch)
treebb29221429328f77755c736d25bf4eb0c660268f /utils
parent29a7e182a6a9c2970b9c2c2d55062d17f33f084e (diff)
downloadchat-4f85ed985d478ddf6692fa4f7d8d98d2a412d18c.tar.gz
chat-4f85ed985d478ddf6692fa4f7d8d98d2a412d18c.tar.bz2
chat-4f85ed985d478ddf6692fa4f7d8d98d2a412d18c.zip
Fixing licensing (#7226)
Diffstat (limited to 'utils')
-rw-r--r--utils/config.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/config.go b/utils/config.go
index af88f816e..36474c921 100644
--- a/utils/config.go
+++ b/utils/config.go
@@ -655,7 +655,7 @@ func Desanitize(cfg *model.Config) {
}
func IsLeader() bool {
- if IsLicensed && *Cfg.ClusterSettings.Enable && einterfaces.GetClusterInterface() != nil {
+ if IsLicensed() && *Cfg.ClusterSettings.Enable && einterfaces.GetClusterInterface() != nil {
return einterfaces.GetClusterInterface().IsLeader()
} else {
return true