Skip to content

Commit

Permalink
Allow deletion for items with no collectionId(s) (#11825)
Browse files Browse the repository at this point in the history
  • Loading branch information
BTreston authored Nov 6, 2024
1 parent 619651c commit 2c5221d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/angular/src/vault/components/add-edit.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 2c5221d

Please sign in to comment.