Skip to content

Commit

Permalink
Fix meeting admin update as committee admin (#2901)
Browse files Browse the repository at this point in the history
  • Loading branch information
bastianjoel authored Oct 17, 2023
1 parent f0e64c4 commit 7f0bf00
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,13 @@ export class MeetingRepositoryService extends BaseRepository<ViewMeeting, Meetin
update.start_time = this.anyDateToUnix(update.start_time);
update.end_time = this.anyDateToUnix(update.end_time);
}
if (meeting && meeting.start_time === undefined && update.start_time === null) {
delete update.start_time;
}
if (meeting && meeting.end_time === undefined && update.end_time === null) {
delete update.end_time;
}

if (update.organization_tag_ids === null) {
update.organization_tag_ids = [];
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,12 @@ export class MeetingEditComponent extends BaseComponent implements OnInit {
public committee!: ViewCommittee;

public get meetingUsers(): ViewUser[] {
return this.editMeeting?.calculated_users || [];
const users = this.editMeeting?.calculated_users;
if (users && !users.some(u => u.id === this.operator.operatorId)) {
users.push(this.operator.user);
}

return users || [];
}

private meetingId: Id | null = null;
Expand Down

0 comments on commit 7f0bf00

Please sign in to comment.