api/routers
CC Worker a37bcaa935 fix(exam): source-pdf download reads files row via service role (S4-8.1 merge-gate fix 2)
Pre-merge smoke caught a second issue: the source_file_id download path read `files`
as-the-user, tripping a PRE-EXISTING broken RLS policy on cabinet_memberships
(42P17 infinite recursion). Authz is already enforced (template fetch + source
visibility), and source_file_id is the template's own file, so resolve the row via
service role (documented exception, same as the catalogue lookup). Flagged the
cabinet_memberships RLS recursion separately as infra bug E8.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-06 22:54:24 +00:00
..
2025-11-14 14:47:19 +00:00
2025-08-23 19:01:36 +01:00
2025-08-23 19:01:36 +01:00
2025-11-19 19:38:09 +00:00
2025-11-14 14:47:19 +00:00
2026-05-28 14:14:35 +01:00
2025-08-23 19:01:36 +01:00
2025-08-23 19:01:36 +01:00
2025-08-23 19:01:36 +01:00
2025-07-11 13:52:19 +00:00
2025-11-14 14:47:19 +00:00
2025-07-11 13:52:19 +00:00
2025-11-14 14:47:19 +00:00
2025-11-14 14:47:19 +00:00
2025-11-14 14:47:19 +00:00
2025-11-14 14:47:19 +00:00
2026-05-28 17:55:37 +01:00