Roles and permissions

The Admin and Barber roles and the flags each list checks.

Access comes from the signed-in user's Role. List access and custom mutations check these flags on the server.

FlagAllows
canAccessDashboardSigning in to /dashboard
canManageBusinessBusiness profile, services, hours, time off, products, chair rental
canManageClientsClients and client notes
canManageAppointmentsAppointments, no-shows, cancelling
canManagePaymentsCheckout, product sales, payment providers
canViewEarningsEarnings
canSeeOtherPeople, canEditOtherPeople, canManagePeople, canManageRolesOther users and roles

Built-in roles

  • Admin is created with the first user at /dashboard/init and has every flag.
  • Barber is attached to anyone who signs up at /dashboard/signup. It has canAccessDashboard, canManageBusiness, canManageClients, canManageAppointments, canManagePayments and canViewEarnings. The caller cannot choose a role.

Ownership filters

Each business list filters by the signed-in user's own profile, so a Barber sees only their own clients, appointments, payments and settings. BarberProfile itself filters by owner and cannot be created through the generic list; only setUpMyBusiness creates it.

On this page