ghostguild-org/tests/server/utils
Jennie Robinson Faber 53331cc190 fix(events): gate members-only events in calculateTicketPrice
Legacy events (tickets.enabled=false) with membersOnly=true were
returning a free guest ticket for unauthenticated callers, causing
GET /api/events/[id]/tickets/available to report available:true. The
UI then rendered the registration form and register.post.js 403'd on
submit. Short-circuit early when membersOnly && !hasMemberAccess so the
availability endpoint's existing null-ticketInfo branch surfaces the
correct "members only" reason.
2026-04-20 20:12:24 +01:00
..
adminAlerts.test.js feat(admin): add alert aggregator with dismissal filtering 2026-04-08 11:14:54 +01:00
auth.test.js Add Vitest security test suite and update security evaluation doc 2026-03-01 12:30:06 +00:00
escapeHtml.test.js Add Vitest security test suite and update security evaluation doc 2026-03-01 12:30:06 +00:00
helcim.test.js feat(helcim): add transaction list + card update helpers 2026-04-19 16:24:16 +01:00
loadEvent.test.js fix(events): enforce series-pass, hidden, and deadline gates 2026-04-20 19:03:34 +01:00
member-number.test.js Huge bunch of UI/UX improvements and tweaks! 2026-04-06 16:17:12 +01:00
payments.test.js feat(payments): add upsertPaymentFromHelcim helper with idempotent insert 2026-04-20 13:15:38 +01:00
tickets.test.js fix(events): gate members-only events in calculateTicketPrice 2026-04-20 20:12:24 +01:00