From 2c5221d3aa0e433bc56bb9900634a694b1c3083b Mon Sep 17 00:00:00 2001 From: Brandon Treston Date: Wed, 6 Nov 2024 14:23:36 -0500 Subject: [PATCH] Allow deletion for items with no collectionId(s) (#11825) --- libs/angular/src/vault/components/add-edit.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/angular/src/vault/components/add-edit.component.ts b/libs/angular/src/vault/components/add-edit.component.ts index 44eaec03a68..aa661236f4c 100644 --- a/libs/angular/src/vault/components/add-edit.component.ts +++ b/libs/angular/src/vault/components/add-edit.component.ts @@ -699,7 +699,7 @@ export class AddEditComponent implements OnInit, OnDestroy { } protected deleteCipher() { - const asAdmin = this.organization?.canEditAllCiphers; + const asAdmin = this.organization?.canEditAllCiphers || !this.cipher.collectionIds; return this.cipher.isDeleted ? this.cipherService.deleteWithServer(this.cipher.id, asAdmin) : this.cipherService.softDeleteWithServer(this.cipher.id, asAdmin);