最佳答案
我正在通过发现流星演示,并努力找出究竟如何’返回! !UserId;’在 这部分中工作:
Posts.allow({
insert: function(userId, doc) {
// only allow posting if you are logged in
return !! userId;
}
});