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:
parent
5916844835
commit
4f8ac2a4fd
1 changed files with 4 additions and 4 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Reference in a new issue