1
0
mirror of https://github.com/bitwarden/browser.git synced 2025-02-22 02:21:34 +01:00

[PM-15572] - don't allow restore for 'edit except password' permission (#12851)

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

* show login credentials if only passkey is present

* Revert "show login credentials if only passkey is present"

This reverts commit dc2f2367c2.
This commit is contained in:
Jordan Aasen 2025-01-17 09:10:28 -08:00 committed by GitHub
parent 83802fcdc5
commit dbb341141a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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"