Allow Async Model Authorization Methods
Allow Async Model Authorization Methods

The model authorization methods have an additional argument. This
argument is a callback that allows to return the authorization result
asynchronously instead of returning it.

Example:
this.allow({
  all: function(req, doc, callback) {
    Something.get(doc.some, function(err, some) {
      callback(some.val === 42)
    })
  }
})

rkusa/swac