Actually in high school (thats 14-18) we didn’t have to ask permission. We had to go over to a sign out sheet, write our names on the sheet, and take a hall pass which we’d be asked for if we ran into any adults. We then needed to sign in upon return, to ensure every sign out had a corresponding sign in, which the teacher would briefly check at the end of class.