docparse-user-in-upload

Test if a given user is an owner of a given upload

Docparse Upload Fetch

Test if a given user is an owner of a given upload

Dependency tracking by David

Usage

var inspect = require('eyespect').inspector();
var userInUpload = require('docparse-user-in-upload');
var data = {
  upload: {} // this should be an instance of docparse-upload 
  user: {} // this should be an instance of docparse-user 
}
userInUpload(data, function(errreply) {
  if(err) {
    inspect(err, 'error fetching upload);
    return;
  }
  inspect(reply, 'is user in upload?');
});

npm install docparse-user-in-upload