mirror of
https://github.com/bitwarden/browser
synced 2025-12-10 21:33:27 +00:00
fix showEdit bug (#13853)
This commit is contained in:
@@ -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.
|
* A user may restore items if they have delete permissions and the item is in the trash.
|
||||||
*/
|
*/
|
||||||
protected async canUserRestore() {
|
protected async canUserRestore() {
|
||||||
const featureFlagEnabled = await firstValueFrom(this.limitItemDeletion$);
|
if (await firstValueFrom(this.limitItemDeletion$)) {
|
||||||
return this.isTrashFilter && this.cipher?.isDeleted && featureFlagEnabled
|
return this.isTrashFilter && this.cipher?.isDeleted && this.cipher?.permissions.restore;
|
||||||
? this.cipher?.permissions.restore
|
}
|
||||||
: this.canDelete;
|
return this.isTrashFilter && this.cipher?.isDeleted && this.canDelete;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected showRestore: boolean;
|
protected showRestore: boolean;
|
||||||
|
|||||||
Reference in New Issue
Block a user