remove links that heads to lessons and units for unenrolled users and inactive lessons, closes #161