AOSSIE-Org / AOSSIE-Org/Ell-ena

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

Offen
#281 2 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Dart
Sterne
54
Forks
110
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

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

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.