mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-03 14:03:37 -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)
|
||||
AuthenticationController._redirectToLoginOrRegisterPage(req, res)
|
||||
else
|
||||
req.user = AuthenticationController.getSessionUser(req)
|
||||
next()
|
||||
|
||||
return doRequest
|
||||
|
|
Loading…
Reference in a new issue