0
Fork 0
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:
Fabien O'Carroll 2019-10-01 12:44:42 +07:00
parent e2ec3e71ac
commit 10cf9539db

View file

@ -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;