Commit Graph

5 Commits

Author SHA1 Message Date
Georges-Antoine Assi
78c8550883 cleanup 2026-07-26 16:47:00 -04:00
Georges-Antoine Assi
9b0f281df1 Bind note update/delete to the rom in the path
update_rom_note and delete_rom_note selected on note_id and user_id only,
so the rom resolved from the path never constrained which note was
touched. Pairing a note id with any other rom id in the path reached that
note regardless.

Both handlers now filter on rom_id as well, and the endpoints pass the
rom they resolved.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-07-26 16:42:58 -04:00
Georges-Antoine Assi
b1ac647322 Enforce hidden-rom visibility on rom child routes
The screenshot, soundtrack, manual and note routes looked up the rom by
path id but never ran the visibility gate that the core rom routes and
roms/files.py already apply, so a hidden rom stayed reachable through its
child resources.

Add assert_rom_visible() after each lookup. update_rom_note and
delete_rom_note took {id} in the path without resolving it at all, so
they now load the rom first.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-07-26 16:33:38 -04:00
zurdi
17e37c4262 feat: add user avatar and updated timestamp to notes schema and frontend components 2026-06-17 13:41:07 +02:00
Georges-Antoine Assi
f6b11d3bde split out rom endpoints 2026-03-08 14:51:28 -04:00