mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-06 22:40:14 -05:00
Added name, email & subscriptions to data in theme
no-issue This is to allow better customistion of a "members area" in the theme
This commit is contained in:
parent
e2ec3e71ac
commit
10cf9539db
1 changed files with 2 additions and 0 deletions
|
@ -80,6 +80,8 @@ function updateLocalTemplateOptions(req, res, next) {
|
||||||
|
|
||||||
const member = req.member ? {
|
const member = req.member ? {
|
||||||
email: req.member.email,
|
email: req.member.email,
|
||||||
|
name: req.member.name,
|
||||||
|
subscriptions: req.member.stripe.subscriptions,
|
||||||
subscribed: req.member.stripe.subscriptions.length !== 0
|
subscribed: req.member.stripe.subscriptions.length !== 0
|
||||||
} : null;
|
} : null;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue