Update class.commentmodel.php

Check permissions when using advanced notifications
Partly fixing https://github.com/vanillaforums/Garden/pull/1740
Merge pull request #1741 from R-J/patch-14

Check permissions in RecordAdvancedNotications