AOSSIE-Org / AOSSIE-Org/Ell-ena

BUG:Multi-Team Switch is broken due to Schema Constraints and RLS mismatch

Abierto
#281 2 comentarios 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
Dart
Estrellas
54
Forks
110
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

### Is there an existing issue for this?

- [x] I have searched the existing issues

### What happened?

Issue Description:
The "Switch Team" feature currently fails because:
1. Schema: The users table only allows one team_id per user, preventing membership in multiple teams.
2. Persistence: SupabaseService.switchTeam only updates the local cache and never the database.
3. RLS: Because the database isn't updated, Supabase Row-Level Security blocks the user from seeing data in
the "switched" team.

This makes the feature non-functional. I have a fix ready, can you please assign this to me?

### Record

- [x] I agree to follow this project's Code of Conduct
- [x] I want to work on this issue

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.