Browse Source

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

pull/6926/head
Jason Ng 2 years ago committed by GitHub
parent
commit
5e9856fa03
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      apps/web/src/app/reports/pages/inactive-two-factor-report.component.ts

5
apps/web/src/app/reports/pages/inactive-two-factor-report.component.ts

@ -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;
} }

Loading…
Cancel
Save