Files
romm/backend/tests/endpoints/roms
Spinnich 7bbf94c08c fix(roms): re-check visibility on the random pick after fetching
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.
2026-08-02 20:04:30 +00:00
..
2026-03-22 16:30:14 -04:00