mirror of
https://github.com/rommapp/romm.git
synced 2026-12-02 10:08:40 +01:00
The id comes from a permission-filtered query but the row is fetched by raw id, so a rom that moved to a hidden platform in between was picked under its old one and would serialize under its new one. Re-check the loaded row against the caller's permissions, as every other raw-id rom lookup does. Returns null rather than raising 404: it keeps a hidden rom indistinguishable from an empty scope, and keeps an error path out of a contract that otherwise has none.