Fix admin validation to check organization_members instead of tenant_account_joins
- Replace TenantAccountJoinRole check with OrganizationMember role check - Use OrganizationRole.ADMIN to validate admin privileges - Query organization_members table using account's current_organization_id - This fixes the issue where super_admin@test.edu couldn't login despite having admin role The previous validation was checking the wrong role system (tenant roles vs organization roles). Now it correctly validates against the organization membership role. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>pull/21891/head
parent
42b7ec95bf
commit
fa19a56660
Loading…
Reference in New Issue