Implement forum cohort visibility labels correctly

TNL-25
Sorry to have missed addressing this comment. I've updated the AJAX clause too, and written a test for it.