mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Set req.user
This commit is contained in:
parent
6df569253a
commit
c959e0c65d
1 changed files with 1 additions and 0 deletions
|
@ -108,6 +108,7 @@ module.exports = AuthenticationController =
|
||||||
if !AuthenticationController.isUserLoggedIn(req)
|
if !AuthenticationController.isUserLoggedIn(req)
|
||||||
AuthenticationController._redirectToLoginOrRegisterPage(req, res)
|
AuthenticationController._redirectToLoginOrRegisterPage(req, res)
|
||||||
else
|
else
|
||||||
|
req.user = AuthenticationController.getSessionUser(req)
|
||||||
next()
|
next()
|
||||||
|
|
||||||
return doRequest
|
return doRequest
|
||||||
|
|
Loading…
Reference in a new issue