The answer to this question is based on the state or country you are located in. But in most cases based where I'm located a minor must get a guardians permission.
I really suggest checking Parental consent laws for the country you are in or whatever country your teacher is referring to.