Look up all teams accessible to the current user, by id
After getting the teams, check each team. If the team is not already a member, and the user is setting a role other than 'none', and the user does not own the team, add an error and do not include in "changed_members"