2014-10-04 08:48:44 +02:00
|
|
|
docs = new Meteor.Collection 'docs'
|
|
|
|
|
|
|
|
Meteor.publish 'doc', (id) -> docs.find _id: id
|
2014-10-04 10:11:08 +02:00
|
|
|
Meteor.publish 'docs', -> docs.find()
|
2014-10-04 09:39:07 +02:00
|
|
|
|
|
|
|
docs.allow
|
|
|
|
insert: -> yes
|
|
|
|
update: -> no
|
|
|
|
remove: -> no
|