fix: unauthorized admin should receive 403 code

This commit is contained in:
NGPixel 2020-07-19 15:30:29 -04:00
parent 4f16dd0c81
commit 4cd6fe8a56

View File

@ -47,7 +47,7 @@ router.get(['/a', '/a/*'], (req, res, next) => {
'manage:api'
])) {
_.set(res.locals, 'pageMeta.title', 'Unauthorized')
return res.render('unauthorized', { action: 'view' })
return res.status(403).render('unauthorized', { action: 'view' })
}
_.set(res.locals, 'pageMeta.title', 'Admin')