diff options
Diffstat (limited to 'modules')
-rw-r--r-- | modules/middleware/context.go | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/modules/middleware/context.go b/modules/middleware/context.go index dccd3351c7..7a1dba3d65 100644 --- a/modules/middleware/context.go +++ b/modules/middleware/context.go @@ -58,10 +58,11 @@ func InitContext() martini.Handler { ctx := &Context{ c: c, // p: p, - Req: r, - Res: res, - Data: data, - Render: rd, + Req: r, + Res: res, + Session: session, + Data: data, + Render: rd, } // Get user from session if logined. |