Migrate "User.GetSystemAdminProfiles" to Sync by default (#11491)
Этот коммит содержится в:
коммит произвёл
Jesús Espino
родитель
0b6e4e2f16
Коммит
45b47ca901
@@ -94,12 +94,11 @@ func (s *Server) DoSecurityUpdateCheck() {
|
||||
for _, bulletin := range bulletins {
|
||||
if bulletin.AppliesToVersion == model.CurrentVersion {
|
||||
if props["SecurityBulletin_"+bulletin.Id] == "" {
|
||||
results := <-s.Store.User().GetSystemAdminProfiles()
|
||||
if results.Err != nil {
|
||||
users, userErr := s.Store.User().GetSystemAdminProfiles()
|
||||
if userErr != nil {
|
||||
mlog.Error("Failed to get system admins for security update information from Mattermost.")
|
||||
return
|
||||
}
|
||||
users := results.Data.(map[string]*model.User)
|
||||
|
||||
resBody, err := http.Get(SECURITY_URL + "/bulletins/" + bulletin.Id)
|
||||
if err != nil {
|
||||
|
||||
Ссылка в новой задаче
Block a user