I'm not sure if this is the best solution, but you can get the current record by running a simple query findOne:
beforeUpdate: function(newValues, callback) {
Model
.findOne(newValues.id)
.exec(function (err, currentValues) {
if(currentValues.age > newValues.age) {
newValues.permission = false;
}
return callback();
});
}
source
share