mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
Add check to not send license expiration email when in Cloud (#27308)
This commit is contained in:
parent
4acc4796ed
commit
b86ba51efd
@ -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.")
|
||||||
|
Loading…
Reference in New Issue
Block a user