From c959e0c65dbe5f4465457d5a8f41ac22cd4b11f2 Mon Sep 17 00:00:00 2001 From: Shane Kilkelly Date: Thu, 22 Sep 2016 13:54:13 +0100 Subject: [PATCH] Set req.user --- .../Features/Authentication/AuthenticationController.coffee | 1 + 1 file changed, 1 insertion(+) diff --git a/services/web/app/coffee/Features/Authentication/AuthenticationController.coffee b/services/web/app/coffee/Features/Authentication/AuthenticationController.coffee index 52d20e9194..81aa83f88c 100644 --- a/services/web/app/coffee/Features/Authentication/AuthenticationController.coffee +++ b/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