From f386dba2904ba090cfe4d7a8779c9e519dddecfa Mon Sep 17 00:00:00 2001 From: kevmodrome Date: Mon, 12 Oct 2020 20:37:41 +0200 Subject: [PATCH] add back missing param to validate call on record post route --- packages/server/src/api/routes/record.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/server/src/api/routes/record.js b/packages/server/src/api/routes/record.js index 35c1b55f3c..b3b5e9ed56 100644 --- a/packages/server/src/api/routes/record.js +++ b/packages/server/src/api/routes/record.js @@ -36,7 +36,7 @@ router ) .post( "/api/:modelId/records/validate", - authorized(WRITE_MODEL), + authorized(WRITE_MODEL, ctx => ctx.params.modelId), recordController.validate ) .delete(