From 407368b3ea0ba3774c0e73d20af6599c1913d2cd Mon Sep 17 00:00:00 2001 From: Daniel James Smith <2670567+djsmith85@users.noreply.github.com> Date: Thu, 27 Feb 2025 20:55:24 +0100 Subject: [PATCH] [PM-18706] Added permission check for organizational inactive 2fa report (#13610) * Added permission check for organizational inactive 2fa report Only display the cipher's name if the user running the report does not have permissions to view/edit the cipher * Add appropiate access modifiers to newly added members/methods --------- Co-authored-by: Daniel James Smith --- .../inactive-two-factor-report.component.html | 21 ++++++++++++------- .../inactive-two-factor-report.component.ts | 11 ++++++++++ .../inactive-two-factor-report.component.ts | 9 ++++++++ 3 files changed, 33 insertions(+), 8 deletions(-) diff --git a/apps/web/src/app/tools/reports/pages/inactive-two-factor-report.component.html b/apps/web/src/app/tools/reports/pages/inactive-two-factor-report.component.html index 52bbb1c5e6d..e667a65235b 100644 --- a/apps/web/src/app/tools/reports/pages/inactive-two-factor-report.component.html +++ b/apps/web/src/app/tools/reports/pages/inactive-two-factor-report.component.html @@ -47,14 +47,19 @@ - {{ r.name }} + + {{ r.name }} + + + {{ r.name }} + { return this.cipherService.getAllFromApiForOrganization(this.organization.id); } + + protected canManageCipher(c: CipherView): boolean { + return this.manageableCiphers.some((x) => x.id === c.id); + } }