Compare commits

..

1 Commits

Author SHA1 Message Date
Kayne Ruse 1c32e42b47 Updated admin and mod flag system 2021-03-24 08:22:18 +11:00
+1 -1
View File
@@ -23,7 +23,7 @@ router.get('/archive/metadata/:id(\\d+)', query(true, true));
//use middleware to authenticate the rest of the routes //use middleware to authenticate the rest of the routes
router.use(authToken); router.use(authToken);
router.use((req, res, next) => { router.use((req, res, next) => {
if (req.user.privilege == 'administrator') { if (req.user.admin) {
next(); next();
} else { } else {
res.status(403).end(); res.status(403).end();