1
0
mirror of https://github.com/bitwarden/server.git synced 2025-07-03 17:12:49 -05:00

[PM-17473] Refactor AuthRequestService to remove admin notification feature flag (#5549)

This commit is contained in:
Rui Tomé
2025-04-02 11:47:44 +01:00
committed by GitHub
parent abe593d221
commit 10ea2cb3eb
2 changed files with 1 additions and 82 deletions

View File

@ -287,12 +287,6 @@ public class AuthRequestService : IAuthRequestService
private async Task NotifyAdminsOfDeviceApprovalRequestAsync(OrganizationUser organizationUser, User user)
{
if (!_featureService.IsEnabled(FeatureFlagKeys.DeviceApprovalRequestAdminNotifications))
{
_logger.LogWarning("Skipped sending device approval notification to admins - feature flag disabled");
return;
}
var adminEmails = await GetAdminAndAccountRecoveryEmailsAsync(organizationUser.OrganizationId);
await _mailService.SendDeviceApprovalRequestedNotificationEmailAsync(