add loggedIn state to template parsing

v1.18.x
psychobunny 11 years ago
parent 0816928949
commit ee1e869ccb

@ -321,6 +321,8 @@ middleware.processRender = function(req, res, next) {
options = {};
}
options.loggedIn = req.user ? parseInt(req.user.uid, 10) !== 0 : false;
if ('function' !== typeof fn) {
fn = defaultFn;
}

Loading…
Cancel
Save