Add team ownership verification to /injury set-new #17
Labels
No Label
ai-changes-requested
ai-pr-opened
ai-reviewed
ai-reviewing
ai-working
in-next-release
status/in-progress
status/pr-open
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: cal/major-domo-v2#17
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Found in
commands/injuries/management.py:418:Currently any user with the SBA Players role can set injuries on any team's players. The command should verify that the player belongs to a team owned by the command invoker before allowing the injury to be recorded.
This would require looking up the user's team (via Discord user ID → team owner mapping) and comparing it to the player's
team_id.Closing as duplicate of #18.