From 770c5b908f2fbd29cc90c7c514e4c8e378416d82 Mon Sep 17 00:00:00 2001 From: Bastian Rihm Date: Mon, 13 May 2024 07:45:20 +0200 Subject: [PATCH] Fix unexpected present status change on user update (#3652) --- .../participant-detail-view.component.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/client/src/app/site/pages/meetings/pages/participants/pages/participant-detail/components/participant-detail-view/participant-detail-view.component.ts b/client/src/app/site/pages/meetings/pages/participants/pages/participant-detail/components/participant-detail-view/participant-detail-view.component.ts index bf9135bea5..0b1aebf054 100644 --- a/client/src/app/site/pages/meetings/pages/participants/pages/participant-detail/components/participant-detail-view/participant-detail-view.component.ts +++ b/client/src/app/site/pages/meetings/pages/participants/pages/participant-detail/components/participant-detail-view/participant-detail-view.component.ts @@ -378,7 +378,10 @@ export class ParticipantDetailViewComponent extends BaseMeetingComponent { ) || (await this.promptService.open(title, content)) ) { - if (this.operator.hasPerms(Permission.userCanManagePresence)) { + if ( + this.operator.hasPerms(Permission.userCanManagePresence) && + this.personalInfoFormValue.is_present !== undefined + ) { await this.repo .update(payload, this.user!) .concat(this.repo.setPresent(isPresent, this.user!))