forked from fahrPool/fahrPool
The fahrer UPDATE policy on auftraege, the fahrer INSERT policy on auftrag_fotos, and the storage upload policy all lacked an explicit public.user_role() = 'fahrer' predicate, so any authenticated role (including the default readonly signup role) could exploit the status='offen' clause to self-assign open orders. Also adds identity binding (erstellt_von/uploaded_by = auth.uid()) on inserts, and a column-lockdown check in Task 4's trigger so a fahrer can't smuggle changes to abholort_id/zielort_id/fahrzeug_id/erstellt_von/ vorgaenger_auftrag_id into an otherwise-legitimate update. |
||
|---|---|---|
| .. | ||
| 2026-07-04-fundament-auth-rollen.md | ||
| 2026-07-05-auftragsverwaltung.md | ||