From 1a5da545adfa91cbed156cc1c53a263980680aa7 Mon Sep 17 00:00:00 2001 From: rrenkert Date: Wed, 17 Apr 2024 15:52:07 +0200 Subject: [PATCH 1/5] Fix filters wrongly hidden in participant list (#3572) --- .../participant-list-filter.service.ts | 25 +++++++++++++++---- 1 file changed, 20 insertions(+), 5 deletions(-) diff --git a/client/src/app/site/pages/meetings/pages/participants/pages/participant-list/services/participant-list-filter/participant-list-filter.service.ts b/client/src/app/site/pages/meetings/pages/participants/pages/participant-list/services/participant-list-filter/participant-list-filter.service.ts index 29c842c751..2fab5ff4ae 100644 --- a/client/src/app/site/pages/meetings/pages/participants/pages/participant-list/services/participant-list-filter/participant-list-filter.service.ts +++ b/client/src/app/site/pages/meetings/pages/participants/pages/participant-list/services/participant-list-filter/participant-list-filter.service.ts @@ -1,5 +1,6 @@ import { Injectable } from '@angular/core'; import { TranslateService } from '@ngx-translate/core'; +import { Permission } from 'src/app/domain/definitions/permission'; import { GENDER_FITLERABLE, GENDERS } from 'src/app/domain/models/users/user'; import { OsFilter, OsHideFilterSetting } from 'src/app/site/base/base-filter.service'; import { BaseMeetingFilterListService } from 'src/app/site/pages/meetings/base/base-meeting-filter-list.service'; @@ -7,6 +8,7 @@ import { MeetingActiveFiltersService } from 'src/app/site/pages/meetings/service import { MeetingSettingsService } from 'src/app/site/pages/meetings/services/meeting-settings.service'; import { DelegationType } from 'src/app/site/pages/meetings/view-models/delegation-type'; import { ViewUser } from 'src/app/site/pages/meetings/view-models/view-user'; +import { OperatorService } from 'src/app/site/services/operator.service'; import { GroupControllerService } from '../../../../modules/groups/services/group-controller.service'; import { StructureLevelControllerService } from '../../../structure-levels/services/structure-level-controller.service'; @@ -41,7 +43,8 @@ export class ParticipantListFilterService extends BaseMeetingFilterListService { + return !this.operator.hasPerms(Permission.userCanSeeSensitiveData); } }, { property: `hasSamlId`, - shouldHideFn() { - return !this.canManage; + shouldHideFn: (): boolean => { + return !this.operator.hasPerms(Permission.userCanManage); + } + }, + { + property: `isLastEmailSent`, + shouldHideFn: (): boolean => { + return !this.operator.hasPerms(Permission.userCanSeeSensitiveData); + } + }, + { + property: `isLastLogin`, + shouldHideFn: (): boolean => { + return !this.operator.hasPerms(Permission.userCanUpdate); } } ]; From 39622238014b05a77c11d5fa612d63a35b129578 Mon Sep 17 00:00:00 2001 From: rrenkert Date: Wed, 17 Apr 2024 15:59:31 +0200 Subject: [PATCH 2/5] Hide three-dot menu on permissions lower than canupdate in participant list (#3574) --- .../components/participant-list/participant-list.component.html | 1 + 1 file changed, 1 insertion(+) diff --git a/client/src/app/site/pages/meetings/pages/participants/pages/participant-list/components/participant-list/participant-list.component.html b/client/src/app/site/pages/meetings/pages/participants/pages/participant-list/components/participant-list/participant-list.component.html index c20539893b..40f9905da4 100644 --- a/client/src/app/site/pages/meetings/pages/participants/pages/participant-list/components/participant-list/participant-list.component.html +++ b/client/src/app/site/pages/meetings/pages/participants/pages/participant-list/components/participant-list/participant-list.component.html @@ -149,6 +149,7 @@

{{ 'Participants' | translate }}

- @@ -194,7 +194,7 @@

{{ 'Participants' | translate }}

{{ 'Change password' | translate }} - From 2a5a62c6034006781d7373d521261cec955a51d2 Mon Sep 17 00:00:00 2001 From: reiterl Date: Thu, 18 Apr 2024 08:03:29 +0200 Subject: [PATCH 5/5] Fix visibility of participant list singleitem menu (#3541) --- .../participant-list/participant-list.component.html | 1 + .../components/participant-list/participant-list.component.ts | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/client/src/app/site/pages/meetings/pages/participants/pages/participant-list/components/participant-list/participant-list.component.html b/client/src/app/site/pages/meetings/pages/participants/pages/participant-list/components/participant-list/participant-list.component.html index 274e8bb3f7..3cfc822822 100644 --- a/client/src/app/site/pages/meetings/pages/participants/pages/participant-list/components/participant-list/participant-list.component.html +++ b/client/src/app/site/pages/meetings/pages/participants/pages/participant-list/components/participant-list/participant-list.component.html @@ -155,6 +155,7 @@

{{ 'Participants' | translate }}

[matMenuTriggerFor]="singleItemMenu" (click)="$event.stopPropagation()" [matMenuTriggerData]="{ user: user }" + *ngIf="canSeeSingleItemMenu(user) || (viewport.isMobileSubject | async)" > more_vert 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 0cdd58e1b1..03cb70978a 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 @@ -458,6 +458,10 @@ export class ParticipantListComponent extends BaseMeetingListViewComponent