mirror of
https://github.com/bitwarden/server
synced 2026-02-22 20:33:26 +00:00
[PM-30247] Previously archived items are not archived after import (#6824)
* support importing archived ciphers * preserve archived ciphers across org imports
This commit is contained in:
@@ -74,11 +74,6 @@ public class ImportCiphersController : Controller
|
||||
throw new BadRequestException("You cannot import this much data at once.");
|
||||
}
|
||||
|
||||
if (model.Ciphers.Any(c => c.ArchivedDate.HasValue))
|
||||
{
|
||||
throw new BadRequestException("You cannot import archived items into an organization.");
|
||||
}
|
||||
|
||||
var orgId = new Guid(organizationId);
|
||||
var collections = model.Collections.Select(c => c.ToCollection(orgId)).ToList();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user