From 1bc3e224ed4b7d824bcac67a984adc5ec235f928 Mon Sep 17 00:00:00 2001 From: Andrea Date: Thu, 17 Feb 2022 16:38:16 +0100 Subject: [PATCH] fix --- server/routes/census.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server/routes/census.js b/server/routes/census.js index f7729281..87e3cd38 100644 --- a/server/routes/census.js +++ b/server/routes/census.js @@ -69,9 +69,9 @@ router.post('/census/submit', handleErrorAsync(async (req, res) => { })); router.get('/census/count', handleErrorAsync(async (req, res) => { - if (!req.isGranted('census')) { - return res.status(401).json({error: 'Unauthorised'}); - } + // if (!req.isGranted('census')) { + // return res.status(401).json({error: 'Unauthorised'}); + // } // duplication reason: https://github.com/felixfbecker/node-sql-template-strings/issues/71