diff options
author | =Corey Hulen <corey@hulen.com> | 2016-03-14 16:07:58 -0700 |
---|---|---|
committer | =Corey Hulen <corey@hulen.com> | 2016-03-15 18:27:45 -0700 |
commit | 36b17bf99ddd35c0c223722f8b6f4f1c71b2235e (patch) | |
tree | 6bc07d42d19d1d7a5bef26864bb93a1bc91da5f1 /mattermost.go | |
parent | ea3f25924ea64a2dd1e73624c0d30824e1efb240 (diff) | |
download | chat-36b17bf99ddd35c0c223722f8b6f4f1c71b2235e.tar.gz chat-36b17bf99ddd35c0c223722f8b6f4f1c71b2235e.tar.bz2 chat-36b17bf99ddd35c0c223722f8b6f4f1c71b2235e.zip |
PLT-2115 Adding compliance
Diffstat (limited to 'mattermost.go')
-rw-r--r-- | mattermost.go | 22 |
1 files changed, 1 insertions, 21 deletions
diff --git a/mattermost.go b/mattermost.go index de97d36a2..c555862e9 100644 --- a/mattermost.go +++ b/mattermost.go @@ -70,7 +70,7 @@ func main() { web.InitWeb() if model.BuildEnterpriseReady == "true" { - loadLicense() + api.LoadLicense() } if !utils.IsLicensed && len(utils.Cfg.SqlSettings.DataSourceReplicas) > 1 { @@ -106,26 +106,6 @@ func main() { } } -func loadLicense() { - licenseId := "" - if result := <-api.Srv.Store.System().Get(); result.Err == nil { - props := result.Data.(model.StringMap) - licenseId = props[model.SYSTEM_ACTIVE_LICENSE_ID] - } - - if len(licenseId) != 26 { - l4g.Warn(utils.T("mattermost.load_license.find.warn")) - return - } - - if result := <-api.Srv.Store.License().Get(licenseId); result.Err == nil { - record := result.Data.(*model.LicenseRecord) - utils.LoadLicense([]byte(record.Bytes)) - } else { - l4g.Warn(utils.T("mattermost.load_license.find.warn")) - } -} - func setDiagnosticId() { if result := <-api.Srv.Store.System().Get(); result.Err == nil { props := result.Data.(model.StringMap) |