mirror of
https://github.com/bitwarden/server.git
synced 2026-01-11 19:57:01 +00:00
[PM-29650] retain item archive date on softdelete (#6771)
Some checks are pending
Collect code references / Check for secret access (push) Waiting to run
Collect code references / Code reference collection (push) Blocked by required conditions
Scan / Check PR run (push) Waiting to run
Scan / Checkmarx (push) Blocked by required conditions
Scan / Sonar (push) Blocked by required conditions
Testing / Run tests (push) Waiting to run
Some checks are pending
Collect code references / Check for secret access (push) Waiting to run
Collect code references / Code reference collection (push) Blocked by required conditions
Scan / Check PR run (push) Waiting to run
Scan / Checkmarx (push) Blocked by required conditions
Scan / Sonar (push) Blocked by required conditions
Testing / Run tests (push) Waiting to run
This commit is contained in:
parent
3b5bb76800
commit
34b4dc3985
1 changed files with 0 additions and 7 deletions
|
|
@ -719,13 +719,6 @@ public class CipherService : ICipherService
|
|||
|
||||
cipherDetails.DeletedDate = cipherDetails.RevisionDate = DateTime.UtcNow;
|
||||
|
||||
if (cipherDetails.ArchivedDate.HasValue)
|
||||
{
|
||||
// If the cipher was archived, clear the archived date when soft deleting
|
||||
// If a user were to restore an archived cipher, it should go back to the vault not the archive vault
|
||||
cipherDetails.ArchivedDate = null;
|
||||
}
|
||||
|
||||
await _securityTaskRepository.MarkAsCompleteByCipherIds([cipherDetails.Id]);
|
||||
await _cipherRepository.UpsertAsync(cipherDetails);
|
||||
await _eventService.LogCipherEventAsync(cipherDetails, EventType.Cipher_SoftDeleted);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue