Files
accounted/components
Mattsson aec14f0ca7 fix: scope company_settings query to active company in invoice dialogs (#288)
SendInvoiceDialog and PaymentBookingDialog called .single() on
company_settings without a company_id filter, relying on RLS to narrow
the result. RLS uses user_company_ids() which returns every company the
user can access, so multi-company users (including team members) got
multiple rows back and PostgREST returned 406. Filter explicitly by the
active company and use maybeSingle() so a missing row falls back to
defaults.

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-21 08:34:59 +02:00
..
2026-04-11 17:06:32 +02:00
2026-04-11 17:06:32 +02:00
2026-04-20 21:03:23 +02:00
2026-03-23 20:04:34 +01:00
2026-04-20 10:49:59 +02:00