Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Глава 8, раздел "Создаем права доступа" - несоответствие кода в книге и на гитхабе #133

Open
Ivan-Feofanov opened this issue Sep 4, 2015 · 0 comments

Comments

@Ivan-Feofanov
Copy link

В тексте книги дан следующий код:

Posts.allow({
update: ownsDocument,
remove: ownsDocument
});

Однако он приводит к крашу метеора. На гитзабе в то же время, указан верный код:

Posts.allow({
update: function(userId, post) { return ownsDocument(userId, post);},
remove: function(userId, post) { return ownsDocument(userId, post);}
});

Надо привести в соответствие код в книге и на гитхабе

@Ivan-Feofanov Ivan-Feofanov changed the title Глава 8, раздел "Создаем права доступа" Глава 8, раздел "Создаем права доступа" - несоответствие кода в книге и на гитхабе Sep 4, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant