api/services/PermissionService.js
function(objects, user) {
    if (!_.isArray(objects)) {
      return PermissionService.isForeignObject(user.id)(objects);
    }
    return _.any(objects, PermissionService.isForeignObject(user.id));
  }
function(objects, user) {
    if (!_.isArray(objects)) {
      return PermissionService.isForeignObject(user.id)(objects);
    }
    return _.any(objects, PermissionService.isForeignObject(user.id));
  }
function ( objects , user ) { if ( ! _ . isArray ( objects ) ) { return PermissionService . isForeignObject ( user . id ) ( objects ) ; } return _ . any ( objects , PermissionService . isForeignObject ( user . id ) ) ; }
Given an object, or a list of objects, return true if the list contains
objects not owned by the specified user.
Given an object or a list of objects return true if the list contains objects not owned by the specified user .