Merge branch 'release-3.7'
Этот коммит содержится в:
@@ -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
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user