From 0f30cc62161d415c00c70b12c5c81b18e70695fd Mon Sep 17 00:00:00 2001 From: rbsolis Date: Thu, 24 Jan 2019 10:34:01 +0100 Subject: [PATCH] Fixed parent_id check validator --- routes/admin/scopes.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/admin/scopes.js b/routes/admin/scopes.js index e1b3f65..754e26f 100644 --- a/routes/admin/scopes.js +++ b/routes/admin/scopes.js @@ -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(); };