From e435475b893c3283f7b7815b30fb158cdf1996ab Mon Sep 17 00:00:00 2001 From: Avris Date: Tue, 2 Feb 2021 17:25:46 +0100 Subject: [PATCH] #180 [census] export - fix --- server/routes/census.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/server/routes/census.js b/server/routes/census.js index a47f2221..d1f6738f 100644 --- a/server/routes/census.js +++ b/server/routes/census.js @@ -68,10 +68,6 @@ router.post('/census/submit', async (req, res) => { }); router.get('/census/count', async (req, res) => { - if (!req.isGranted('census')) { - res.status(401).json({error: 'Unauthorised'}); - } - return res.json((await req.db.get(SQL` SELECT COUNT(*) as c FROM census WHERE locale = ${req.config.locale}