參數在發現流星書,使用了否認聲明如下: https://github.com/DiscoverMeteor/Microscope/commit/chapter8-3允許和拒絕在藏品
Posts.deny({
update: function(userId, post, fieldNames) {
.....
});
我不明白的更新功能是如何獲得用戶ID,郵寄,甚至字段名因爲編輯表格正在執行以下操作:
var postProperties = {
url: $(e.target).find('[name=url]').val(),
title: $(e.target).find('[name=title]').val()
}
Posts.update(currentPostId, {$set: postProperties}, function(error) {