Skip to main content
One account can enable both roles. Dashboards stay separate. People switch context instead of mixing renter and owner tools on one screen.

Role model

Each profile stores:
  • is_renter — can use the renter dashboard and write reviews
  • is_owner — can use the owner dashboard and manage properties
  • last_dashboard — renter, owner, or null (used after sign-in)
A person can enable the second role later from settings (for example Become an owner or Also rent).

Sign-in and routing

Middleware rules

  • /dashboard/renter/** requires is_renter
  • /dashboard/owner/** requires is_owner
  • If the requested dashboard is missing but the other role exists, redirect to the available dashboard
  • If neither role is enabled, redirect to onboarding
  • Update last_dashboard when the person successfully enters a dashboard or uses the switcher

Dashboard switcher

Show the dashboard switcher only when both is_renter and is_owner are true. Keep renter and owner navigation trees independent under their own route prefixes.

v1 permissions

Authoritative checks happen in authenticated server code. RLS enforces the same rules as defense in depth. See Data model.