Commit 229c6de
fix(sidebar): show admin-only nav items to admins regardless of view-as
Filter compared item.roles against effectiveRole, but effectiveRole for
an admin is always 'student' or 'staff' (per AuthContext.tsx:132-137),
so admin-only items (User Management, Settings) were never shown.
Admins now always see admin items based on dbUser.role.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 6c313c3 commit 229c6de
1 file changed
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
| 114 | + | |
| 115 | + | |
114 | 116 | | |
115 | 117 | | |
116 | 118 | | |
| |||
0 commit comments