Shane Kilkelly 10 лет назад
Родитель
Сommit
c959e0c65d

+ 1 - 0
services/web/app/coffee/Features/Authentication/AuthenticationController.coffee

@@ -108,6 +108,7 @@ module.exports = AuthenticationController =
 			if !AuthenticationController.isUserLoggedIn(req)
 				AuthenticationController._redirectToLoginOrRegisterPage(req, res)
 			else
+				req.user = AuthenticationController.getSessionUser(req)
 				next()
 
 		return doRequest