The check that a user can only edit their own game submission is done inline in the router handler.
File: src/server/api/routers/games.ts line 418
Action required:
Extract the ownership verification into a reusable tRPC middleware or a shared helper so it can be applied consistently across game-related mutations.
Requested by @Producdevity — related to PR #375
The check that a user can only edit their own game submission is done inline in the router handler.
File:
src/server/api/routers/games.tsline 418Action required:
Extract the ownership verification into a reusable tRPC middleware or a shared helper so it can be applied consistently across game-related mutations.
Requested by @Producdevity — related to PR #375