Roles and permissions
Role flags, what each one unlocks, and which operations check them.
Access comes from boolean flags on the Role list. A User has one role. The first user created at /dashboard/init gets an Admin role with every flag. Manage roles at /dashboard/roles (needs canManageRoles).
There is no manager override flag. Each flag stands alone, so an Admin role must list every one.
Flags
| Flag | Used for |
|---|---|
canAccessDashboard | Sign in to the dashboard |
canSeeOtherPeople, canEditOtherPeople, canManagePeople, canManageRoles | Users and roles |
canManageOnboarding | Setup operations |
canManageTours | Tours, ticket types, add-ons, meeting points, cancellation policies, pricing rules |
canManageDepartures | Schedules, generateDepartures, resizeDeparture, cancelDeparture, closeDeparture, sweepDepartures, tasks |
canManageBookings | The Bookings screen, createChannelBooking, notification preferences |
canManageGuides | Guides, certifications, availability, payouts, assignGuide, respondToAssignment |
canManageResources | Resources and assignResource |
canManageChannels | Channels and generateChannelStatement |
canCheckIn | Today, Calendar, Check-in, manifest, checkInParticipant, markNoShow, participants, signatures |
canReadMedicalNotes | Reading participant medical notes |
canManagePromos | Promo codes and redemptions |
canManageWaivers | Waiver templates |
canManagePayments, canReadPayments | Payment providers, payments, refunds, webhook events (read) |
canIssueRefunds | refundBooking, requestRefundApproval, approveRefund, and the approval list |
canReadAudit | The audit event list |
canManageSettings edits operator settings. canManageCustomers lets a role read users who are customers; editing them still needs canEditOtherPeople.
Onboarding roles
Setup creates three roles:
| Role | Flags |
|---|---|
| Operations Manager | canAccessDashboard, canManageTours, canManageDepartures, canManageBookings, canManageGuides, canManageResources, canManageChannels, canManagePromos, canManageWaivers, canManageCustomers, canManageSettings, canCheckIn, canReadMedicalNotes, canReadPayments, canIssueRefunds, canReadAudit |
| Guide | canAccessDashboard, canCheckIn, canReadMedicalNotes |
| Customer | none |
Payment setup, gift cards, payout and statement settlement, and role management are not in the manager role. Add canManagePayments to the role of anyone who handles that money. A refund above the threshold still needs a second manager with canIssueRefunds.
Checks run on the server
Every custom operation that changes data checks the flag in the resolver. The dashboard requires canAccessDashboard to sign in. Each platform page is gated: when the list behind it is hidden for the session, the page returns 404, the same rule the sidebar uses.
Public operations (toursOnSale, tourAvailability, createDepartureHold, startBookingCheckout, completeBookingCheckout, lookupBooking, cancelMyBooking, signWaiver, waiverForToken, checkoutHold, rebookWithCredit, operatorName, bookingRefExists, giftCardBalance, joinWaitlist, and the manage-link and waitlist-link operations) need no sign-in. They are protected by proof, described in the GraphQL API.
Refund approval
A refund above refundApprovalThresholdCents needs a ManagerApproval made by one user and approved by another. The approval is tied to the booking, the amount, and the reason, and expires after 15 minutes. It is used up in the same transaction that reserves the refund.