1
0
mirror of https://github.com/bitwarden/server synced 2025-12-16 00:03:54 +00:00

allow for archived ciphers to be shared into an organization (#6626)

This commit is contained in:
Nick Krantz
2025-12-02 11:43:22 -06:00
committed by GitHub
parent 71be3865ea
commit 5b8b394982
3 changed files with 0 additions and 132 deletions

View File

@@ -990,11 +990,6 @@ public class CipherService : ICipherService
throw new BadRequestException("One or more ciphers do not belong to you.");
}
if (cipher.ArchivedDate.HasValue)
{
throw new BadRequestException("Cipher cannot be shared with organization because it is archived.");
}
var attachments = cipher.GetAttachments();
var hasAttachments = attachments?.Any() ?? false;
var org = await _organizationRepository.GetByIdAsync(organizationId);