1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-25 12:15:18 +01:00

AC-1694 update inactive 2fa reports, remove can edit except pw ciphers (#6907)

This commit is contained in:
Jason Ng 2023-11-20 15:02:14 -05:00 committed by GitHub
parent b988429822
commit 5e9856fa03
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -47,13 +47,14 @@ export class InactiveTwoFactorReportComponent extends CipherReportComponent impl
const docs = new Map<string, string>(); const docs = new Map<string, string>();
allCiphers.forEach((ciph) => { allCiphers.forEach((ciph) => {
const { type, login, isDeleted, edit, id } = ciph; const { type, login, isDeleted, edit, id, viewPassword } = ciph;
if ( if (
type !== CipherType.Login || type !== CipherType.Login ||
(login.totp != null && login.totp !== "") || (login.totp != null && login.totp !== "") ||
!login.hasUris || !login.hasUris ||
isDeleted || isDeleted ||
(!this.organization && !edit) (!this.organization && !edit) ||
!viewPassword
) { ) {
return; return;
} }