1
0
Fork 0
fahrPool/web
Jonny 58e34a14a6 fix: close stornieren RLS gap and harden fahrtBeenden/stornieren
Security review (automated scan + Task 11 reviewer) found a fahrer could
storniere their own assigned order because Task 2's fahrer UPDATE policy
only constrains zugewiesen_an, never status. Adds a role-gated check to
the status trigger (only admin/disponent may set status='storniert') plus
a pgTAP regression test. Also hardens fahrtBeenden/stornieren to check
affected-row counts instead of silently redirecting to a success page on
a blocked update.

Live-verified: fahrer storno attempt now rejected by the trigger; normal
fahrer fahrtBeenden flow unaffected. db reset + test db (21/21), build,
and npm test (17/17) all pass.
2026-07-06 06:22:53 +02:00
..
app fix: close stornieren RLS gap and harden fahrtBeenden/stornieren 2026-07-06 06:22:53 +02:00
components feat: add auftraege list page with role-aware sections 2026-07-05 21:45:27 +02:00
lib feat: add fahrt-beenden, stornieren and folgeauftrag suggestion 2026-07-05 22:36:19 +02:00
public chore: scaffold Next.js app with Vitest 2026-07-04 10:58:26 +02:00
.dockerignore feat: containerize the Next.js app and wire it into docker-compose 2026-07-05 00:25:01 +02:00
.env.local.example feat: containerize the Next.js app and wire it into docker-compose 2026-07-05 00:25:01 +02:00
.gitignore feat: add Supabase browser and server client helpers 2026-07-04 15:32:05 +02:00
Dockerfile feat: containerize the Next.js app and wire it into docker-compose 2026-07-05 00:25:01 +02:00
README.md docs: add root setup README and fix stale auth.user_role() reference 2026-07-05 00:45:39 +02:00
eslint.config.mjs chore: scaffold Next.js app with Vitest 2026-07-04 10:58:26 +02:00
middleware.ts feat: add auth middleware with session refresh and redirects 2026-07-04 15:57:41 +02:00
next.config.ts chore: scaffold Next.js app with Vitest 2026-07-04 10:58:26 +02:00
package-lock.json feat: add Supabase browser and server client helpers 2026-07-04 15:32:05 +02:00
package.json feat: add Supabase browser and server client helpers 2026-07-04 15:32:05 +02:00
tsconfig.json chore: scaffold Next.js app with Vitest 2026-07-04 10:58:26 +02:00
vitest.config.ts chore: scaffold Next.js app with Vitest 2026-07-04 10:58:26 +02:00

README.md

web

See the root README.md for the full setup sequence — this is a sub-directory of a larger self-hosted Supabase + Next.js project, not a standalone create-next-app.