PLT-518 check for security bulletins
Этот коммит содержится в:
@@ -80,7 +80,7 @@ func main() {
|
|||||||
func securityAndDiagnosticsJob() {
|
func securityAndDiagnosticsJob() {
|
||||||
go func() {
|
go func() {
|
||||||
for {
|
for {
|
||||||
if utils.Cfg.PrivacySettings.EnableSecurityFixAlert { //&& model.IsOfficalBuild() {
|
if utils.Cfg.PrivacySettings.EnableSecurityFixAlert && model.IsOfficalBuild() {
|
||||||
if result := <-api.Srv.Store.System().Get(); result.Err == nil {
|
if result := <-api.Srv.Store.System().Get(); result.Err == nil {
|
||||||
props := result.Data.(model.StringMap)
|
props := result.Data.(model.StringMap)
|
||||||
lastSecurityTime, _ := strconv.ParseInt(props["LastSecurityTime"], 10, 0)
|
lastSecurityTime, _ := strconv.ParseInt(props["LastSecurityTime"], 10, 0)
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user