You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Надо привести в соответствие код в книге и на гитхабе
The text was updated successfully, but these errors were encountered:
Ivan-Feofanov
changed the title
Глава 8, раздел "Создаем права доступа"
Глава 8, раздел "Создаем права доступа" - несоответствие кода в книге и на гитхабе
Sep 4, 2015
В тексте книги дан следующий код:
Posts.allow({
update: ownsDocument,
remove: ownsDocument
});
Однако он приводит к крашу метеора. На гитзабе в то же время, указан верный код:
Posts.allow({
update: function(userId, post) { return ownsDocument(userId, post);},
remove: function(userId, post) { return ownsDocument(userId, post);}
});
Надо привести в соответствие код в книге и на гитхабе
The text was updated successfully, but these errors were encountered: