Andrey Antukh
25066c2f46
🐛 Require file read permissions for asset endpoints ( #11036 )
...
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: mimo-v2.5-pro
2026-08-05 17:44:01 +02:00
..
2026-05-10 09:16:41 +02:00
2026-07-20 11:48:26 +02:00
2026-08-05 17:40:58 +02:00
2026-05-29 11:24:58 +02:00
2026-05-29 11:24:58 +02:00
2026-05-29 11:24:58 +02:00
2026-07-31 12:04:10 +02:00
2026-07-22 13:11:57 +02:00
2026-08-05 17:44:01 +02:00
2026-05-29 11:24:58 +02:00
2026-05-29 11:24:58 +02:00
2026-07-31 12:06:19 +02:00
2026-05-29 11:24:58 +02:00
2026-06-02 09:33:02 +02:00
2026-08-05 09:41:48 +02:00
2026-05-29 11:24:58 +02:00
2026-07-20 11:56:07 +02:00
2026-07-31 13:19:45 +02:00
2026-07-30 07:32:02 +02:00
2026-08-05 17:37:27 +02:00
2026-07-30 07:32:02 +02:00
2026-05-29 11:24:58 +02:00
2026-05-29 11:24:58 +02:00
2026-05-29 11:24:58 +02:00
2026-08-05 17:35:59 +02:00
2026-05-29 11:24:58 +02:00
2026-08-05 17:40:04 +02:00
2026-06-15 13:04:19 +02:00
2026-08-05 09:41:48 +02:00
2026-08-03 17:23:55 +02:00
2026-06-03 14:08:10 +02:00
2026-08-05 09:41:48 +02:00
2026-08-03 17:23:55 +02:00
2026-08-03 17:23:55 +02:00
2026-08-04 12:44:25 +02:00
2026-05-29 11:24:58 +02:00
2026-05-29 11:24:58 +02:00
2026-08-03 17:23:55 +02:00
2026-06-01 12:57:39 +02:00
2026-08-05 17:42:49 +02:00
2026-07-09 19:34:15 +02:00
2026-08-05 09:41:48 +02:00
2026-05-29 11:24:58 +02:00
2026-05-29 11:24:58 +02:00
2026-05-29 11:24:58 +02:00
2026-05-29 11:24:58 +02:00
2026-06-01 12:57:39 +02:00