|
|
@@ -37,7 +37,7 @@ module.exports = (crowi) => {
|
|
|
.withMessage('body is required'),
|
|
|
body('path').exists().not().isEmpty({ ignore_whitespace: true })
|
|
|
.withMessage('path is required'),
|
|
|
- body('grant').if(value => value != null).isInt({ min: 1, max: 5 }).withMessage('grant must be integer from 1 to 5'),
|
|
|
+ body('grant').if(value => value != null).isInt({ min: 0, max: 5 }).withMessage('grant must be integer from 1 to 5'),
|
|
|
body('overwriteScopesOfDescendants').if(value => value != null).isBoolean().withMessage('overwriteScopesOfDescendants must be boolean'),
|
|
|
body('isSlackEnabled').if(value => value != null).isBoolean().withMessage('isSlackEnabled must be boolean'),
|
|
|
body('slackChannels').if(value => value != null).isString().withMessage('slackChannels must be string'),
|