Existing-sponsor link + remove Interfaces (Pretix/Sessionize)
- Sponsor lookup popup can now link an existing sponsor (dropdown + pre-fill) or create a new one; save upserts the sponsor linked to the contact and sets the registration type to sponsor. - Remove the Interfaces feature end-to-end: admin nav button + Sync view, sync API helpers + SyncRun type, sync-trigger Edge Function, mock-api + its docker-compose service, and a migration dropping the sync RPCs, helpers, and sync_runs table. - Update docs (architecture, backend, frontend, README, roadmap, next-steps).
This commit is contained in:
1 parent
1cbbd1b529
commit
a54ce69c4d
27 files changed
+147
-1150
No files matched your search
@@ -52,7 +52,6 @@ Source of truth:
|
||||
| `feedback` | own **or** admin | — | — | — |
|
||||
| `leaderboard` | all authenticated | — | — | — |
|
||||
| `points_log` | own **or** admin | — | — | — |
|
||||
| `sync_runs` | admin only | — | — | — |
|
||||
|
||||
**"—" (no policy)** means normal users have **no direct write access** — those
|
||||
tables are written only by the `security definer` RPCs, which bypass RLS. This is
|
||||
@@ -120,10 +119,6 @@ create policy "leaderboard_select_all" on public.leaderboard for select to authe
|
||||
-- points_log: read own or admin
|
||||
create policy "points_log_select_own_or_admin" on public.points_log for select to authenticated
|
||||
using (contact_email = public.current_email() or public.is_admin());
|
||||
|
||||
-- sync_runs: admin only (interface sync audit)
|
||||
create policy "sync_runs_select_admin" on public.sync_runs for select to authenticated
|
||||
using (public.is_admin());
|
||||
```
|
||||
|
||||
## Storage — `materials` bucket
|
||||
@@ -158,8 +153,6 @@ grant usage on schema public to anon, authenticated, service_role;
|
||||
grant select on <all 14 tables> to anon, authenticated, service_role;
|
||||
grant insert, update, delete on <all 14 tables> to authenticated, service_role;
|
||||
grant execute on function <all public RPCs + helpers> to authenticated;
|
||||
grant execute on function sync_pretix_attendees(jsonb), sync_sessionize_sessions(jsonb)
|
||||
to service_role; -- interface sync RPCs are service-role-only
|
||||
```
|
||||
|
||||
Note `anon` gets `select` but **no** `insert/update/delete`; `authenticated` gets
|
||||
|
||||
Reference in new issue
Block a user