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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user