Add team ownership check in /injury set-new #18

Closed
opened 2026-02-20 06:48:50 +00:00 by cal · 0 comments
Owner

Description

commands/injuries/management.py:418 — The injury_set_new command explicitly skips verifying that the invoking user actually owns the team the player is on. The comment reads: # TODO: Add team ownership verification. Any league player with the Season 13 Players role can currently set an injury on any player on any team without being blocked.

File Locations

  • commands/injuries/management.py:418

Labels

security, bug, todo

Priority

high

## Description `commands/injuries/management.py:418` — The `injury_set_new` command explicitly skips verifying that the invoking user actually owns the team the player is on. The comment reads: `# TODO: Add team ownership verification`. Any league player with the `Season 13 Players` role can currently set an injury on any player on any team without being blocked. ## File Locations - `commands/injuries/management.py:418` ## Labels security, bug, todo ## Priority high
cal closed this issue 2026-03-02 19:14:41 +00:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: cal/major-domo-v2#18
No description provided.