Skip to content

Instantly share code, notes, and snippets.

@lvbreda
Created November 27, 2012 23:35
Show Gist options
  • Save lvbreda/4157964 to your computer and use it in GitHub Desktop.
Save lvbreda/4157964 to your computer and use it in GitHub Desktop.
Players = new Meteor.Collection('players');
Players.allow({
insert: function (userId, doc) {
return true;
},
update: function (userId, docs, fields, modifier) {
return true;
},
remove: function (userId, docs) {
return true;
}
});
Meteor.publish("players",function(){
Players.find({});
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment