fixing issue where nojs mode of a private category would show the category topics, even if the requesting user was not allowed inside