0
내가 오류를 몽고 기록을 갱신하고려고 수 있도록 "catch되지 않은 오류 :.. 허용되지 않음 신뢰할 수없는 코드는 ID를 기준으로 문서를 업데이트 할 수 있습니다 [403]"유성 JS 업데이트
이것은 코드 예제입니다
'click .toActive': function() {
// ...
var teamId = Session.get('teamId');
console.log(teamId);
teams.update({_id: teamId, "players.id": this.id}, {$set: {"players.$.status": "active"}});
}
teams.allow({
update: function (userId, doc, fields, modifier) {
//...
return true;
}
})
이 경우 어떻게해야합니까?
죄송합니다. 제 질문에 파일 경로가 표시되지 않았습니다. 'click. toActive'경로는 ./client/smth.js이고 allow-deny 규칙 경로는 ./collections/teams.js입니다. – Anton