Blame view
collections/example.js
667 Bytes
3b214be5e
|
1 2 3 4 5 6 7 |
Example = new Meteor.Collection('example'); /* * Allow */ Example.allow({ |
3e761f11b
|
8 9 10 |
insert: function(){ // Disallow inserts on the client by default. return false; |
3b214be5e
|
11 |
}, |
3e761f11b
|
12 13 14 |
update: function(){ // Disallow updates on the client by default. return false; |
3b214be5e
|
15 |
}, |
3e761f11b
|
16 17 18 |
remove: function(){ // Disallow removes on the client by default. return false; |
3b214be5e
|
19 20 21 22 23 24 25 26 |
} }); /* * Deny */ Example.deny({ |
3e761f11b
|
27 28 29 |
insert: function(){ // Deny inserts on the client by default. return true; |
3b214be5e
|
30 |
}, |
3e761f11b
|
31 32 33 |
update: function(){ // Deny updates on the client by default. return true; |
3b214be5e
|
34 |
}, |
3e761f11b
|
35 36 37 |
remove: function(){ // Deny removes on the client by default. return true; |
3b214be5e
|
38 39 |
} }); |