The most complete open-source travel planner: real-time collaboration, bookings, budgets, packing lists, journals, offline PWA, SSO and an AI-ready MCP server, with planet-wide place search and routing built in.
TypeScript budget-trackercollaborativedockeritinerarymcp-serveroffline-firstopen-sourceopenstreetmappacking-listpwareal-timeself-hostedselfhostedtraveltravel-apptravel-journaltravel-plannertripitwanderlog
fix(mobile): the detail sheet reads its edit permission off the live booking, not the held one
Mauricee58a880f3424
diff --git a/client/src/mobile/screens/trip/sheets/MTransportSheet.tsx b/client/src/mobile/screens/trip/sheets/MTransportSheet.tsxindex 5bdadf4b8..e6c6f9abc 100644--- a/client/src/mobile/screens/trip/sheets/MTransportSheet.tsx+++ b/client/src/mobile/screens/trip/sheets/MTransportSheet.tsx@@ -120,8 +120,9 @@ export default function MTransportSheet({ planner, shell }: MTripSheetsProps) {const meta = parseMetadata(res)// A transport is part of the day plan, a stay, a table or a ticket a booking:- // each is edited under its own permission, as in the tab it belongs to.- const canEdit = isTransportReservationType(res.type) ? canEditDays : canEditBookings+ // each is edited under its own permission, as in the tab it belongs to. Read off+ // the live booking, so a sheet on its way out offers nothing to edit.+ const canEdit = liveRes != null && (isTransportReservationType(liveRes.type) ? canEditDays : canEditBookings)const ResIcon = RES_ICONS[res.type as keyof typeof RES_ICONS] || RES_ICONS.otherconst from = (res.endpoints || []).find(e => e.role === 'from')