Skip to content

Commit 5b88474

Browse files
committed
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.
1 parent c417654 commit 5b88474

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

docs/client/basic/sections/collections.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ For example, we might say that users can only create new posts if the
233233
impersonate each other.
234234

235235
```
236-
// In a file loaded on the client and server
236+
// In a file loaded on the server (ignored on the client)
237237
Posts.allow({
238238
insert: function (userId, post) {
239239
// 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
284284
certain post titles:
285285

286286
```
287-
// In a file loaded on the client and server
287+
// In a file loaded on the server (ignored on the client)
288288
Posts.deny({
289289
insert: function (userId, post) {
290290
// Don't allow posts with a certain title

0 commit comments

Comments
 (0)