forked from fahrPool/fahrPool
Task 2's fahrer UPDATE policy only constrains zugewiesen_an in its WITH CHECK, not the status value itself, so a fahrer could set their own assigned order straight to 'storniert' even though the spec reserves cancellation for Disponent/Admin. Live-verified the gap (UPDATE 1 as fahrer before the fix). Extends Task 4's trigger with a role-gated check on the 'storniert' target status plus a regression test (plan(12) -> plan(13)). Also hardens fahrtBeenden/stornieren in Task 11 to check affected-row counts (matching uebernehmen's existing pattern) instead of silently "succeeding" when RLS blocks a write for an unauthorized caller. |
||
|---|---|---|
| .. | ||
| 2026-07-04-fundament-auth-rollen.md | ||
| 2026-07-05-auftragsverwaltung.md | ||