1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-12 22:33:35 +00:00

don't allow restore for 'edit except password' permission

This commit is contained in:
jaasen-livefront
2025-01-13 15:51:52 -08:00
parent d471fe0418
commit f54a8da47c
2 changed files with 6 additions and 2 deletions

View File

@@ -235,7 +235,11 @@ export class ViewV2Component {
}
protected showFooter(): boolean {
return this.cipher && (!this.cipher.isDeleted || (this.cipher.isDeleted && this.cipher.edit));
return (
this.cipher &&
(!this.cipher.isDeleted ||
(this.cipher.isDeleted && this.cipher.edit && this.cipher.viewPassword))
);
}
/**

View File

@@ -31,7 +31,7 @@
></i>
<span slot="secondary">{{ cipher.subTitle }}</span>
</button>
<ng-container slot="end" *ngIf="cipher.edit">
<ng-container slot="end" *ngIf="cipher.edit && cipher.viewPassword">
<bit-item-action>
<button
type="button"