Update class.discussionmodel.php

Check for permissions when notifying of new discussions
Partly fixing https://github.com/vanillaforums/Garden/issues/1518