Этот коммит содержится в:
George Goldberg
2017-03-23 17:38:24 +00:00
родитель 120f5a6f8a 8ec3757074
Коммит c6ded1dbfd
12 изменённых файлов: 284 добавлений и 116 удалений

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

@@ -76,6 +76,8 @@ func SaveLicense(licenseBytes []byte) (*model.License, *model.AppError) {
return nil, model.NewLocAppError("addLicense", model.INVALID_LICENSE_ERROR, nil, "")
}
ReloadConfig()
InvalidateAllCaches()
return license, nil
@@ -93,6 +95,8 @@ func RemoveLicense() *model.AppError {
return result.Err
}
ReloadConfig()
InvalidateAllCaches()
return nil

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

@@ -178,7 +178,7 @@ func (webCon *WebConn) IsAuthenticated() bool {
func (webCon *WebConn) SendHello() {
msg := model.NewWebSocketEvent(model.WEBSOCKET_EVENT_HELLO, "", "", webCon.UserId, nil)
msg.Add("server_version", fmt.Sprintf("%v.%v.%v", model.CurrentVersion, model.BuildNumber, utils.CfgHash))
msg.Add("server_version", fmt.Sprintf("%v.%v.%v.%v", model.CurrentVersion, model.BuildNumber, utils.CfgHash, utils.IsLicensed))
msg.DoPreComputeJson()
webCon.Send <- msg
}