Update class.commentmodel.php

Check permissions when using advanced notifications
Partly fixing https://github.com/vanillaforums/Garden/pull/1740