Test 2 ACL
This commit is contained in:
parent
2ed971fbcc
commit
e1c07b4149
|
@ -10,7 +10,7 @@ router.use((req, res, next) => {
|
||||||
if (perms.includes('*') || perms.includes('acl')) {
|
if (perms.includes('*') || perms.includes('acl')) {
|
||||||
return next();
|
return next();
|
||||||
}
|
}
|
||||||
return res.status(403).render('error', { error: 'Forbidden', button: { text: 'Back', action: 'back' } }); \
|
return res.status(403).render('error', { error: 'Forbidden', button: { text: 'Back', action: 'back' } });
|
||||||
});
|
});
|
||||||
|
|
||||||
router.get('/', async (req, res) => {
|
router.get('/', async (req, res) => {
|
||||||
|
|
Loading…
Reference in a new issue