From 5b88474e0cd7df44c436723fabe2fbdb4afd15f1 Mon Sep 17 00:00:00 2001 From: ogourment Date: Sun, 7 Dec 2014 12:31:09 -0500 Subject: [PATCH] Make deny, allow example clear as to client/server As per explanation from Avital Oliver in meteor-talk, I suggest making this change in the doc to make it more clear that the example does not need to reside on *both* the client and server. The title of the sections (deny, allow) from the autoApiBox specify "server". The example got me confused as is. --- docs/client/basic/sections/collections.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/client/basic/sections/collections.md b/docs/client/basic/sections/collections.md index 2d1b35d49e..978820dba4 100644 --- a/docs/client/basic/sections/collections.md +++ b/docs/client/basic/sections/collections.md @@ -233,7 +233,7 @@ For example, we might say that users can only create new posts if the impersonate each other. ``` -// In a file loaded on the client and server +// In a file loaded on the server (ignored on the client) Posts.allow({ insert: function (userId, post) { // can only create posts where you are the author @@ -284,7 +284,7 @@ For example, if we wanted to override part of our `allow` rule above to exclude certain post titles: ``` -// In a file loaded on the client and server +// In a file loaded on the server (ignored on the client) Posts.deny({ insert: function (userId, post) { // Don't allow posts with a certain title