Roles and permissions

The Tutor and Family roles and the flags each page and list checks.

FlagAllows
canAccessDashboardSigning in to /dashboard
canManageBusinessBusiness details, session types, packages, hours, time off
canManageFamiliesFamilies, students, inquiries, reviews, package balances
canManageSessionsSessions, notes, homework, marks, resources, series
canManagePaymentsBilling, invoices, recording and refunding payments
canViewEarningsEarnings and exports
canSeeOtherPeople, canEditOtherPeople, canManagePeople, canManageRolesUsers and roles

Built-in roles

  • Tutor is created with the first account at /dashboard/init and has every flag.
  • Family is attached to every later account, whether it was claimed from an invite or a booking (claimFamilyAccount) or made through open sign-up. It has every flag off: no dashboard and no generic list access. A family only reaches its own records through the my… operations, which resolve the family from the signed-in session.

The caller can never choose a role. Open sign-up is off unless PUBLIC_SIGNUPS_ALLOWED=true.

On this page