summaryrefslogtreecommitdiffstats
path: root/modules/middleware
diff options
context:
space:
mode:
Diffstat (limited to 'modules/middleware')
-rw-r--r--modules/middleware/context.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/middleware/context.go b/modules/middleware/context.go
index 8c837d0852..19556118e3 100644
--- a/modules/middleware/context.go
+++ b/modules/middleware/context.go
@@ -358,7 +358,7 @@ func InitContext() martini.Handler {
})
// Get user from session if logined.
- user := auth.SignedInUser(ctx.Session)
+ user := auth.SignedInUser(ctx.req.Header, ctx.Session)
ctx.User = user
ctx.IsSigned = user != nil