Only send publish notifications to users who can see results

Fixes #386.

Publish notifications are only sent
- if the course was published for everyone or
- if the user has comments about himself or
- if the user is responsible and there was at least one comment about one contributor or about the course.
only if the course was published and if this would be the case the if in line 336 would be true.