fix(hours_payouts): RLS-Bypass-Falle bei mid-request commit

_build_out() lief nach db.commit() -> app.bypass_rls verfällt mit
Transaktion, Post-Commit-Reads sahen keine Zeilen mehr. _build_out()
jetzt vor commit aufgerufen (create/request/approve/reject/cancel).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LTxkZEUdfgMxZvHPiZJ8bV
This commit is contained in:
2026-08-05 18:56:55 +02:00
co-authored by Claude Sonnet 5
parent eb8dace0fd
commit 7c24887ec1
2 changed files with 62 additions and 10 deletions
+50
View File
@@ -2636,3 +2636,53 @@ Keine Commits in dieser Session.
- server-update.sh | 14 ++++++++++----
---
## 2026-07-10 01:54 01:55 (0m)
**Beschreibung:** Claude Code Session
**Projekt:** custom-addons
### Commits
Keine Commits in dieser Session.
### Geänderte Dateien
- DEVLOG.md | 460 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
- backend/DEVLOG.md | 13 ++++
- backend/app/models/company.py | 2 +
- backend/app/models/hours_payout.py | 17 ++++-
- backend/app/routers/hours_payouts.py | 280 +++++++++++++++++++++++++++++++++++++++++++++++--------------------
- backend/app/schemas/company.py | 2 +
- backend/app/schemas/hours_payout.py | 17 +++++
- backend/migrations/versions/0042_payout_requests.py | 36 +++++++++
- backend/tests/test_hours_payouts.py | 87 +++++++++++++++++++++
- frontend/DEVLOG.md | 39 ++++++++++
- frontend/src/components/PayoutRequestCard.tsx | 150 ++++++++++++++++++++++++++++++++++++
- frontend/src/pages/AbsencesPage.tsx | 3 +
- frontend/src/pages/CompanySettingsPage.tsx | 31 +++++++-
- frontend/src/pages/HoursPayoutPage.tsx | 82 +++++++++++++++++---
- frontend/src/types/hoursPayout.ts | 7 ++
---
## 2026-08-05 18:56 18:56 (0m)
**Beschreibung:** Claude Code Session
**Projekt:** timemaster
### Commits
Keine Commits in dieser Session.
### Geänderte Dateien
- DEVLOG.md | 460 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
- backend/DEVLOG.md | 13 ++++
- backend/app/models/company.py | 2 +
- backend/app/models/hours_payout.py | 17 ++++-
- backend/app/routers/hours_payouts.py | 280 +++++++++++++++++++++++++++++++++++++++++++++++--------------------
- backend/app/schemas/company.py | 2 +
- backend/app/schemas/hours_payout.py | 17 +++++
- backend/migrations/versions/0042_payout_requests.py | 36 +++++++++
- backend/tests/test_hours_payouts.py | 87 +++++++++++++++++++++
- frontend/DEVLOG.md | 39 ++++++++++
- frontend/src/components/PayoutRequestCard.tsx | 150 ++++++++++++++++++++++++++++++++++++
- frontend/src/pages/AbsencesPage.tsx | 3 +
- frontend/src/pages/CompanySettingsPage.tsx | 31 +++++++-
- frontend/src/pages/HoursPayoutPage.tsx | 82 +++++++++++++++++---
- frontend/src/types/hoursPayout.ts | 7 ++
---