Only add Enterprise features to client config if enabled by license (#2768)

Этот коммит содержится в:
Joram Wilander
2016-04-21 10:38:14 -04:00
коммит произвёл Corey Hulen
родитель 899ee09224
Коммит 5b5d9c0eaf
2 изменённых файлов: 22 добавлений и 8 удалений

Просмотреть файл

@@ -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) {