Collection Permissions (#829)

see https://github.com/outline/outline/issues/668
This commit is contained in:
Tom Moor
2019-01-05 13:37:33 -08:00
committed by GitHub
parent 8978915423
commit 8c02b0028c
53 changed files with 1379 additions and 214 deletions

View File

@ -25,7 +25,7 @@ export default function validation() {
};
ctx.assertUuid = (value, message) => {
if (!validator.isUUID(value)) {
if (!validator.isUUID(value.toString())) {
throw new ValidationError(message);
}
};