mirror of
https://github.com/rommapp/romm.git
synced 2026-11-30 10:32:57 +01:00
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>