Fix team access check

The old API is now paginated, and was very inefficient anyway. This now makes a request to a much more efficient endpoint to determine if a given user is a member of a team