2015-03-13 83 views
0

當我嘗試插入到集合而不驗證我得到拒絕訪問的錯誤,這裏是我的權限:拒絕訪問匿名

signedforms.allow({ 
    'insert': function(userId, doc) { 
    return userId; 
    }, 
    'update': function(userId, doc, fields, modifier) { 
    return userId; 
    }, 
    'remove': function(userId, doc) { 
    return userId; 
    } 
}); 

回答

1

如果你不驗證,那麼有沒有userId,所以你的函數返回undefined。改爲返回true