Team managers (captain and above) can now deactivate/reactivate a player and change their team-role from the player detail page. Deactivation zeroes the open balance via an auditable adjustment transaction instead of overwriting the balance field, and both actions are blocked if they would leave a team without an active treasurer. Also hardens the existing PUT teams/:id/players endpoint down to profile-only fields, fixing a typo bug and closing a gap where any authenticated user could mutate a player's active/role/balance in any team. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
252 B
252 B