Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7c55fc03aa |
@@ -28,6 +28,7 @@ module.exports = (req, res, next) => {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (["/static/", "/hax/", "/assets/"].find(p => req.path.startsWith(p)) == null) {
|
||||||
if (req.user) {
|
if (req.user) {
|
||||||
res.locals.user = {
|
res.locals.user = {
|
||||||
loggedIn: true,
|
loggedIn: true,
|
||||||
@@ -39,6 +40,7 @@ module.exports = (req, res, next) => {
|
|||||||
loggedIn: false,
|
loggedIn: false,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
next()
|
next()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user