Files
romm/backend/tests/endpoints
Georges-Antoine Assi cca9f500f1 fix(auth): mask hidden platforms from the export endpoints
Both routes passed every caller-supplied platform_id straight to the
exporter. A permission group can grant platforms.write while hiding
individual platforms, so such a caller could export a platform hidden
from them -- reading its metadata and rewriting its gamelist.xml or
metadata.pegasus.txt.

Resolve and check every platform up front, the way update_platform and
delete_platform already do, so a rejected request writes nothing at all
rather than failing part way through a batch. A missing platform 404s
like a hidden one, so the response is not an oracle for whether the
platform exists.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-06 11:40:00 -04:00
..
2026-03-14 23:56:46 -04:00
2026-06-21 17:42:25 -04:00
2026-03-14 23:56:46 -04:00