RBAC Model ยท Permission Matrix ยท Access Decisions
Role-Based Access Control model is defined with 5 system roles and 24 permission resources. Real enforcement requires authenticated user context and verified Supabase database. Permissions shown here reflect the architectural design โ not live enforcement.
Architecture design โ not enforced until auth/database verified
| Resource | Super Admin | Clinic Owner | Clinic Admin | Team Member | Viewer |
|---|---|---|---|---|---|
| leads | Full | Full | CRUD | CRU | R |
| contacts | Full | Full | CRUD | CRU | R |
| pipeline | Full | Full | CRUD | CRU | R |
| tasks | Full | Full | CRUD | CRU | R |
| appointments | Full | Full | CRUD | CRU | R |
| calls | Full | Full | CRUD | CRU | R |
| messages | Full | Full | CRUD | CRU | R |
| sequences | Full | Full | CRUD | CRU | R |
| calendar | Full | Full | CRUD | CRU | R |
| bookings | Full | Full | CRUD | CRU | R |
| settings | Full | Full | CRUD | CRU | R |
| billing | Full | Full | CRUD | CRU | R |
Real-time access decisions โ pending auth context