Andrey Antukh aac8a69951 🐛 Require file read permissions for asset endpoints
Add authorization check to generic-handler in assets.clj so that
/assets/by-file-media-id/:id and its /thumbnail variant verify the
requesting profile has read access to the parent file. Return 404
(not 403) when access is denied to avoid confirming existence.

Also switch get-file-media-object from db/get to db/get* so that
non-existent media objects return nil instead of raising.

AI-assisted-by: qwen3.7-plus
2026-08-03 18:26:47 +02:00
..
2026-05-29 11:24:58 +02:00
2026-07-22 13:11:57 +02:00
2026-05-29 11:24:58 +02:00
2026-07-09 19:34:15 +02:00