From 1c6666672c2e16a15d401bd5870d8d02ed7ee36e Mon Sep 17 00:00:00 2001 From: Vijay Oommen Date: Thu, 27 Feb 2025 15:02:17 -0600 Subject: [PATCH] Revert "[PM-18456] Display unassigned items in reports (#13612)" This reverts commit 0b6828a72ba5aa84fc41f2ac9d04b7de08a5d08c. --- .../pages/organizations/exposed-passwords-report.component.ts | 3 --- .../organizations/inactive-two-factor-report.component.ts | 3 --- .../pages/organizations/reused-passwords-report.component.ts | 3 --- .../pages/organizations/unsecured-websites-report.component.ts | 3 --- .../pages/organizations/weak-passwords-report.component.ts | 3 --- 5 files changed, 15 deletions(-) diff --git a/apps/web/src/app/tools/reports/pages/organizations/exposed-passwords-report.component.ts b/apps/web/src/app/tools/reports/pages/organizations/exposed-passwords-report.component.ts index 2722e66f14f..4f523dbf7ba 100644 --- a/apps/web/src/app/tools/reports/pages/organizations/exposed-passwords-report.component.ts +++ b/apps/web/src/app/tools/reports/pages/organizations/exposed-passwords-report.component.ts @@ -91,9 +91,6 @@ export class ExposedPasswordsReportComponent } canManageCipher(c: CipherView): boolean { - if (c.collectionIds.length === 0) { - return true; - } return this.manageableCiphers.some((x) => x.id === c.id); } } diff --git a/apps/web/src/app/tools/reports/pages/organizations/inactive-two-factor-report.component.ts b/apps/web/src/app/tools/reports/pages/organizations/inactive-two-factor-report.component.ts index 9b53d583b99..5979e99c0fa 100644 --- a/apps/web/src/app/tools/reports/pages/organizations/inactive-two-factor-report.component.ts +++ b/apps/web/src/app/tools/reports/pages/organizations/inactive-two-factor-report.component.ts @@ -94,9 +94,6 @@ export class InactiveTwoFactorReportComponent } protected canManageCipher(c: CipherView): boolean { - if (c.collectionIds.length === 0) { - return true; - } return this.manageableCiphers.some((x) => x.id === c.id); } } diff --git a/apps/web/src/app/tools/reports/pages/organizations/reused-passwords-report.component.ts b/apps/web/src/app/tools/reports/pages/organizations/reused-passwords-report.component.ts index bcd573fb09d..1e2f5225d59 100644 --- a/apps/web/src/app/tools/reports/pages/organizations/reused-passwords-report.component.ts +++ b/apps/web/src/app/tools/reports/pages/organizations/reused-passwords-report.component.ts @@ -89,9 +89,6 @@ export class ReusedPasswordsReportComponent } canManageCipher(c: CipherView): boolean { - if (c.collectionIds.length === 0) { - return true; - } return this.manageableCiphers.some((x) => x.id === c.id); } } diff --git a/apps/web/src/app/tools/reports/pages/organizations/unsecured-websites-report.component.ts b/apps/web/src/app/tools/reports/pages/organizations/unsecured-websites-report.component.ts index e653a6b9a05..748986fe5bb 100644 --- a/apps/web/src/app/tools/reports/pages/organizations/unsecured-websites-report.component.ts +++ b/apps/web/src/app/tools/reports/pages/organizations/unsecured-websites-report.component.ts @@ -94,9 +94,6 @@ export class UnsecuredWebsitesReportComponent } protected canManageCipher(c: CipherView): boolean { - if (c.collectionIds.length === 0) { - return true; - } return this.manageableCiphers.some((x) => x.id === c.id); } } diff --git a/apps/web/src/app/tools/reports/pages/organizations/weak-passwords-report.component.ts b/apps/web/src/app/tools/reports/pages/organizations/weak-passwords-report.component.ts index 41018d69c22..82abc8561fb 100644 --- a/apps/web/src/app/tools/reports/pages/organizations/weak-passwords-report.component.ts +++ b/apps/web/src/app/tools/reports/pages/organizations/weak-passwords-report.component.ts @@ -93,9 +93,6 @@ export class WeakPasswordsReportComponent } canManageCipher(c: CipherView): boolean { - if (c.collectionIds.length === 0) { - return true; - } return this.manageableCiphers.some((x) => x.id === c.id); } }