mirror of
https://github.com/bitwarden/browser
synced 2025-12-10 13:23:34 +00:00
Allow deletion for items with no collectionId(s) (#11825)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user