fix
This commit is contained in:
parent
0fc7e762a2
commit
1bc3e224ed
|
@ -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
|
||||
|
||||
|
|
Reference in New Issue