An officer of any bank who is a member of any board having authority to let public funds shall not cast any vote in favor of any bank of which he is an officer.