diff --git a/apps/web/src/app/vault/components/vault-item-dialog/vault-item-dialog.component.ts b/apps/web/src/app/vault/components/vault-item-dialog/vault-item-dialog.component.ts index f7169d9dbd4..b2adeecbf69 100644 --- a/apps/web/src/app/vault/components/vault-item-dialog/vault-item-dialog.component.ts +++ b/apps/web/src/app/vault/components/vault-item-dialog/vault-item-dialog.component.ts @@ -233,10 +233,10 @@ export class VaultItemDialogComponent implements OnInit, OnDestroy { * A user may restore items if they have delete permissions and the item is in the trash. */ protected async canUserRestore() { - const featureFlagEnabled = await firstValueFrom(this.limitItemDeletion$); - return this.isTrashFilter && this.cipher?.isDeleted && featureFlagEnabled - ? this.cipher?.permissions.restore - : this.canDelete; + if (await firstValueFrom(this.limitItemDeletion$)) { + return this.isTrashFilter && this.cipher?.isDeleted && this.cipher?.permissions.restore; + } + return this.isTrashFilter && this.cipher?.isDeleted && this.canDelete; } protected showRestore: boolean;