Notifications = new Mongo.Collection('notifications');

Notifications = new Mongo.Collection('notifications');

Notifications.allow({
  update: function(userId, doc, fieldNames) {
    return ownsDocument(userId, doc) &&
      fieldNames.length === 1 && fieldNames[0] === 'read';
  }
});

createCommentNotification = function(comment) {
  var post = Posts.find(comment.postId);

  if (comment.userId !== post.userId) {
    Notifications.insert({
      userId: post.userId,
      postId: post._id,
      commentId: comment._id,
      commeterName: comment.author,
      read: false;
    })
  }
}

Add allow rule and a createCommentNotification
Add allow rule and a createCommentNotification
