Skip to content

fix(dashboard): show org switcher for superadmin users#617

Merged
zbigniewsobiecki merged 9 commits intodevfrom
fix/superadmin-org-switcher
Mar 6, 2026
Merged

fix(dashboard): show org switcher for superadmin users#617
zbigniewsobiecki merged 9 commits intodevfrom
fix/superadmin-org-switcher

Conversation

@zbigniewsobiecki
Copy link
Copy Markdown
Member

Summary

  • Fix org switcher not appearing for superadmin users
  • The isAdmin check in org-context.tsx only checked for role === 'admin', missing superadmin

Root Cause

// Before (bug)
const isAdmin = me?.role === 'admin';

// After (fix)
const isAdmin = me?.role === 'admin' || me?.role === 'superadmin';

Test plan

  • TypeScript compiles
  • Lint passes
  • All 3727 tests pass
  • Manually verify superadmin can see and use org switcher after deployment

🤖 Generated with Claude Code

zbigniewsobiecki and others added 9 commits February 23, 2026 15:54
chore: release - merge dev into main
The org switcher was only checking for role === 'admin', missing
'superadmin' users. This caused superadmins to lose the ability
to switch between organizations in the dashboard.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@zbigniewsobiecki zbigniewsobiecki merged commit f887865 into dev Mar 6, 2026
6 checks passed
@zbigniewsobiecki zbigniewsobiecki deleted the fix/superadmin-org-switcher branch March 6, 2026 14:11
@zbigniewsobiecki zbigniewsobiecki mentioned this pull request Mar 6, 2026
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant