> ## Documentation Index
> Fetch the complete documentation index at: https://ratemyrentalco.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Roles and dashboards

> How one RateMyRental account can be a renter, a property owner, or both — with separate dashboards.

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

```mermaid theme={null}
flowchart LR
  signIn[Sign in] --> ensureUser[Ensure profile row]
  ensureUser --> hasRole{Has any role?}
  hasRole -->|no| onboarding[Onboarding: enable renter and/or owner]
  hasRole -->|yes| lastDash[Restore last dashboard]
  onboarding --> lastDash
  lastDash --> renterDash["/dashboard/renter"]
  lastDash --> ownerDash["/dashboard/owner"]
  renterDash <-->|dashboard switcher| ownerDash
```

### 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

| Actor | Can |
| - | - |
| Renter | Create and edit own reviews; view own review history |
| Property owner | Create and edit own properties; view reviews on owned properties |
| Public | Browse properties and read reviews |

Authoritative checks happen in authenticated server code. RLS enforces the same rules as defense in depth. See [Data model](https://ratemyrentalco.com/docs/architecture/data-model.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.