1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-16 16:59:30 +00:00

update comment

This commit is contained in:
jaasen-livefront
2025-01-13 12:25:17 -08:00
parent 7fea45a75d
commit 91006630c9

View File

@@ -234,13 +234,13 @@ export class VaultItemDialogComponent implements OnInit, OnDestroy {
}
/**
* Whether the user can restore the given cipher from the trash
* Whether the user can restore a given cipher from the trash
* Rules for when a cipher can be restored:
* - the cipher is deleted
* - AND
* - AND one or more of the following:
* - the cipher is a personal item (doesn't belong to an organization)
* - the cipher belongs to a collection that the user can manage
* - the user is an admin of the organization
* - the user is an admin of the organization to which the cipher belongs
*/
protected get canRestoreCipher() {
if (!this.cipher || !this.cipher.isDeleted) {