How to hide inactive courses and inactive users