func SetLicense(license *model.License) bool { license.Features.SetDefaults() if !license.IsExpired() && license.IsStarted() { License = license IsLicensed = true ClientLicense = getClientLicense(license) return true } return false }
func SetLicense(license *model.License) bool { license.Features.SetDefaults() if !license.IsExpired() { License = license IsLicensed = true ClientLicense = getClientLicense(license) ClientCfg = getClientConfig(Cfg) return true } return false }