summaryrefslogtreecommitdiffstats
path: root/utils/license.go
diff options
context:
space:
mode:
authorJoram Wilander <jwawilander@gmail.com>2016-04-21 10:38:14 -0400
committerCorey Hulen <corey@hulen.com>2016-04-21 07:38:14 -0700
commit5b5d9c0eafe49fc21edef92c4e4c9740b628366e (patch)
tree8a3fdbb84c7da0f05e3a312adf56b61efb1a34a2 /utils/license.go
parent899ee09224799cb8b1dffaea781a18594616b50e (diff)
downloadchat-5b5d9c0eafe49fc21edef92c4e4c9740b628366e.tar.gz
chat-5b5d9c0eafe49fc21edef92c4e4c9740b628366e.tar.bz2
chat-5b5d9c0eafe49fc21edef92c4e4c9740b628366e.zip
Only add Enterprise features to client config if enabled by license (#2768)
Diffstat (limited to 'utils/license.go')
-rw-r--r--utils/license.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/utils/license.go b/utils/license.go
index 69279fd23..ba323d9b4 100644
--- a/utils/license.go
+++ b/utils/license.go
@@ -51,6 +51,7 @@ func SetLicense(license *model.License) bool {
License = license
IsLicensed = true
ClientLicense = getClientLicense(license)
+ ClientCfg = getClientConfig(Cfg)
return true
}
@@ -61,6 +62,7 @@ func RemoveLicense() {
License = &model.License{}
IsLicensed = false
ClientLicense = getClientLicense(License)
+ ClientCfg = getClientConfig(Cfg)
}
func ValidateLicense(signed []byte) (bool, string) {