0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00

Current user data update

This commit is contained in:
Hannah Wolfe 2013-10-17 21:38:49 +01:00
parent 5916844835
commit 4f8ac2a4fd

View file

@ -114,9 +114,9 @@ function ghostLocals(req, res, next) {
api.users.read({id: req.session.user}).then(function (currentUser) {
_.extend(res.locals, {
currentUser: {
name: currentUser.attributes.name,
email: currentUser.attributes.email,
image: currentUser.attributes.image
name: currentUser.name,
email: currentUser.email,
image: currentUser.image
}
});
next();