how he was able to make that hole without setting off the defensive magic baffled her , since he was only a warlock in training and the teachers at the academy made sure their students couldnt break the barrier unless they were preapproved to leave the grounds .