Skip to content

Commit

Permalink
Merge pull request #139 from GeographicaGS/hotfix_fixed_scope_validator
Browse files Browse the repository at this point in the history
Fixed parent_id check validator
  • Loading branch information
Ignacio Domingo Martínez authored Jan 24, 2019
2 parents cd96d3f + 0f30cc6 commit c4888c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion routes/admin/scopes.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ var addScopeValidator = function(req, res, next){
req.checkBody('multi', 'boolean required').isBoolean();
req.checkBody('timezone', 'invalid timezone').optional().isValidTimezone();
// Async Validation
req.checkBody('multi', 'invalid or non-existent parent_id').optional().validMulti(req.body.parent_id, res.user);
req.checkBody('parent_id', 'invalid or non-existent parent_id').optional().validMulti(req.body.parent_id, res.user);

return next();
};
Expand Down

0 comments on commit c4888c5

Please sign in to comment.