fix: remove infinite login redirect from homepage
This commit is contained in:
parent
4f23984ac6
commit
8970e70333
@ -137,8 +137,6 @@ router.get('/*', async (req, res, next) => {
|
||||
|
||||
if (!WIKI.auth.checkAccess(req.user, ['read:pages'], pageArgs)) {
|
||||
if (pageArgs.path === 'home') {
|
||||
return res.redirect('/login')
|
||||
} else {
|
||||
_.set(res.locals, 'pageMeta.title', 'Unauthorized')
|
||||
return res.render('unauthorized', { action: 'view' })
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user