【发布时间】:2015-06-01 10:57:15
【问题描述】:
我正在浏览 Discover Meteor 演示,并且正在努力弄清楚“返回 !!用户身份;'在this section工作:
Posts.allow({
insert: function(userId, doc) {
// only allow posting if you are logged in
return !! userId;
}
});
【问题讨论】:
-
这是一个骗人的问题,也有很多答案:stackoverflow.com/questions/784929/…
标签: javascript