diff --git a/src/middleware/middleware.js b/src/middleware/middleware.js index 0693c39d5f..89c954bccd 100644 --- a/src/middleware/middleware.js +++ b/src/middleware/middleware.js @@ -392,6 +392,7 @@ middleware.processRender = function(req, res, next) { } options.loggedIn = req.user ? parseInt(req.user.uid, 10) !== 0 : false; + options[template] = true; if ('function' !== typeof fn) { fn = defaultFn;