Checks if a user has permission to edit a team.
The ID of the team.
The ID of the user.
Returns true if the user can edit, or an error message if not.
Checks if a user has permission to edit a team.