fix(assistant): taking a proposal needs place rights, and a card's choices wait while a change runs

Plan this checks place_edit like the tour routes, the include choices of a
run or group stay disabled while the chat applies a change, and a follow-up
can say when it applies, so Confirm the pending bookings shows only when the
card holds a pending booking of this trip.
This commit is contained in:
Maurice
2026-10-22 22:46:35 +00:00
parent cf8cf9058d
commit 3eded5f5be
13 changed files with 195 additions and 39 deletions
@@ -129,9 +129,13 @@ export class AssistantController {
return this.foundPlaces.add(user.id, Number(tripId), idParam(threadId), body);
}
/** "Plan this" on a hike or a city walk an answer proposed: a change card that creates it, no model turn. */
/**
* "Plan this" on a hike or a city walk an answer proposed: a change card that creates it, no model turn.
* It holds a new tour, so it asks for the right the tour routes ask for.
*/
@Post('threads/:threadId/proposals')
@HttpCode(200)
@RequirePermission('place_edit')
@ResponseContract(assistantAddFoundPlaceResponseSchema)
takeProposal(
@CurrentUser() user: User,