Feature: Financial Role Access Control — Phase 4 (P2)
Story: US3 — Nav hides financial links for non-GERENTE
Update src/components/dashboard-nav.tsx:
- Add
interface DashboardNavProps { role: string } and update function signature
- Derive
const financialItems = ['/dashboard/financeiro', '/dashboard/planos']
- Filter
navItems to exclude items whose href is in financialItems when role !== 'GERENTE'
- Use the filtered list in JSX render
Independent test: RECEPCIONISTA sidebar has no Financeiro/Planos links ✅
Feature: Financial Role Access Control — Phase 4 (P2)
Story: US3 — Nav hides financial links for non-GERENTE
Update
src/components/dashboard-nav.tsx:interface DashboardNavProps { role: string }and update function signatureconst financialItems = ['/dashboard/financeiro', '/dashboard/planos']navItemsto exclude items whosehrefis infinancialItemswhenrole !== 'GERENTE'Independent test: RECEPCIONISTA sidebar has no Financeiro/Planos links ✅