AOSSIE-Org / AOSSIE-Org/Ell-ena

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

Aperta
#281 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Dart
Stelle
54
Fork
110
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

### 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

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.