code: function(options) {
      var action = PermissionService.getMethod(options.method);
  
      //console.log('findModelPermissions options', options)
      //console.log('findModelPermissions action', action)
  
      return User.findOne(options.user.id)
        .populate('roles')
        .then(function(user) {
          var permissionCriteria = {
            model: options.model.id,
            action: action,
            or: [
              { role: _.pluck(user.roles, 'id') },
              { user: user.id }
            ]
          };
          
          return Permission.find(permissionCriteria).populate('criteria')
        });
    }
docs: Query Permissions that grant privileges to a role/user on an action for a
  model.
  
  @param options.method
  @param options.model
  @param options.user