Fix bug where teachers running as a student didn't use PUB mode