fixing a bug where a student can see a hidden course