Tasks = new Mongo.Collection 'vision_tasks'

Tasks.attachBehaviour 'timestampable'

Tasks.allow
  insert: (userId, doc) -> yes
  update: (userId, doc) ->
    userId is doc.createdBy


module.exports = Tasks
