1
0
mirror of https://github.com/bitwarden/server synced 2026-01-04 09:33:40 +00:00

Added push notification for when Collection management settings have been changed. (#5230)

This commit is contained in:
Jared McCannon
2025-01-09 10:32:33 -06:00
committed by GitHub
parent e754ae4729
commit ced4870309
11 changed files with 72 additions and 0 deletions

View File

@@ -238,6 +238,19 @@ public class NotificationHubPushNotificationService : IPushNotificationService
await SendPayloadToOrganizationAsync(organization.Id, PushType.SyncOrganizationStatusChanged, message, false);
}
public async Task PushSyncOrganizationCollectionManagementSettingsAsync(Organization organization) =>
await SendPayloadToOrganizationAsync(
organization.Id,
PushType.SyncOrganizationCollectionSettingChanged,
new OrganizationCollectionManagementPushNotification
{
OrganizationId = organization.Id,
LimitCollectionCreation = organization.LimitCollectionCreation,
LimitCollectionDeletion = organization.LimitCollectionDeletion
},
false
);
private string GetContextIdentifier(bool excludeCurrentContext)
{
if (!excludeCurrentContext)