From 75941ac6b2a84ab839942fde13eba7db939b08e5 Mon Sep 17 00:00:00 2001 From: rrenkert Date: Tue, 16 Apr 2024 15:59:03 +0200 Subject: [PATCH] Fixed visibility of inactive attribute and hide filters (#3556) --- .../user-detail-view/user-detail-view.component.html | 5 ++++- .../participant-list/participant-list.component.html | 2 +- .../participant-list/participant-list.component.ts | 4 ++++ .../participant-list-filter.service.ts | 12 ++++++++++++ 4 files changed, 21 insertions(+), 2 deletions(-) diff --git a/client/src/app/site/modules/user-components/components/user-detail-view/user-detail-view.component.html b/client/src/app/site/modules/user-components/components/user-detail-view/user-detail-view.component.html index 7bf95d2583..a197a308fd 100644 --- a/client/src/app/site/modules/user-components/components/user-detail-view/user-detail-view.component.html +++ b/client/src/app/site/modules/user-components/components/user-detail-view/user-detail-view.component.html @@ -178,7 +178,10 @@

{{ 'Name' | translate }}

  ({{ user.pronoun }}) - + block {{ 'Participants' | translate }} account_balance - + block diff --git a/client/src/app/site/pages/meetings/pages/participants/pages/participant-list/components/participant-list/participant-list.component.ts b/client/src/app/site/pages/meetings/pages/participants/pages/participant-list/components/participant-list/participant-list.component.ts index 05162289d8..0cdd58e1b1 100644 --- a/client/src/app/site/pages/meetings/pages/participants/pages/participant-list/components/participant-list/participant-list.component.ts +++ b/client/src/app/site/pages/meetings/pages/participants/pages/participant-list/components/participant-list/participant-list.component.ts @@ -89,6 +89,10 @@ export class ParticipantListComponent extends BaseMeetingListViewComponent { return !this._voteDelegationEnabled; } + }, + { + property: `is_active`, + shouldHideFn() { + return !this.canSeeSensitiveData; + } + }, + { + property: `hasSamlId`, + shouldHideFn() { + return !this.canManage; + } } ]; }