Add check to not send license expiration email when in Cloud (#27308)

This commit is contained in:
Nick Misasi 2024-06-10 11:20:44 -04:00 committed by GitHub
parent 4acc4796ed
commit b86ba51efd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1351,6 +1351,10 @@ func (s *Server) doLicenseExpirationCheck() {
return return
} }
if license.IsCloud() {
return
}
users, err := s.Store().User().GetSystemAdminProfiles() users, err := s.Store().User().GetSystemAdminProfiles()
if err != nil { if err != nil {
mlog.Error("Failed to get system admins for license expired message from Mattermost.") mlog.Error("Failed to get system admins for license expired message from Mattermost.")