From b925451edd78fa08df869522edb12f36b2cfd97c Mon Sep 17 00:00:00 2001 From: Andrey Savihin Date: Fri, 29 Nov 2024 12:30:28 +0300 Subject: [PATCH] ASC.Web.Core: WhatsNewNotify: Fixed error from the log System.Security.Authentication.InvalidCredentialException: account at ASC.Core.SecurityContext.AuthenticateMeWithoutCookieAsync(IAccount account, List`1 additionalClaims, Guid session) at ASC.Core.SecurityContext.AuthenticateMeWithoutCookieAsync(Int32 tenantId, Guid userId, List`1 additionalClaims) at ASC.Web.Studio.Core.Notify.StudioWhatsNewNotify.SendMsgWhatsNewAsync(Int32 tenantId, DateTime scheduleDate, WhatsNewType whatsNewType, List`1 products) --- web/ASC.Web.Core/Notify/StudioWhatsNewNotify.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/ASC.Web.Core/Notify/StudioWhatsNewNotify.cs b/web/ASC.Web.Core/Notify/StudioWhatsNewNotify.cs index 64c2446c46c..eee566e3cfe 100644 --- a/web/ASC.Web.Core/Notify/StudioWhatsNewNotify.cs +++ b/web/ASC.Web.Core/Notify/StudioWhatsNewNotify.cs @@ -115,7 +115,7 @@ private async Task SendMsgWhatsNewAsync(int tenantId, DateTime scheduleDate, Wha var client = workContext.RegisterClient(serviceProvider, studioNotifyHelper.NotifySource); _log.InformationStartSendWhatsNewIn(tenant.GetTenantDomain(coreSettings), tenantId); - foreach (var user in await userManager.GetUsersAsync()) + foreach (var user in await userManager.GetUsersAsync(EmployeeStatus.Active)) { _log.Debug($"SendMsgWhatsNew start checking subscription: {user.Email}");//temp