This commit is contained in:
Andrea 2022-02-17 16:38:16 +01:00
parent 0fc7e762a2
commit 1bc3e224ed
1 changed files with 3 additions and 3 deletions

View File

@ -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