Fixed missing `user` context variable in dicussion course + switched to using more efficient `cached_has_permissions`
Merge pull request #330 from open-craft/eugeny/discussion-backport

Discussion course production deployment issues fix