123456789101112131415161718 |
- /**
- * @file
- *
- *
- * User: marand
- * Date: 30/08/15
- * Time: 10:48
- */
- // Not a "var", to make it global.
- Posts = new Mongo.Collection('posts');
- Posts.allow({
- insert: function (userId, doc) {
- // Only allow insert to logged-in users
- return !!userId;
- }
- });
|