Skip to content

refactor: move game ownership check to tRPC middleware #403

@coderabbitai

Description

@coderabbitai

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions