fix #386; only send publish notifications to users who can see results
Merge pull request #452 from janno42/email_if_necessary

Only send publish notifications to users who can see results