From 10cf9539db16ab4097728c66653ca9daffff1899 Mon Sep 17 00:00:00 2001 From: Fabien O'Carroll Date: Tue, 1 Oct 2019 12:44:42 +0700 Subject: [PATCH] Added name, email & subscriptions to data in theme no-issue This is to allow better customistion of a "members area" in the theme --- core/frontend/services/themes/middleware.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/frontend/services/themes/middleware.js b/core/frontend/services/themes/middleware.js index 55b4230ce6..8e6e34d2f0 100644 --- a/core/frontend/services/themes/middleware.js +++ b/core/frontend/services/themes/middleware.js @@ -80,6 +80,8 @@ function updateLocalTemplateOptions(req, res, next) { const member = req.member ? { email: req.member.email, + name: req.member.name, + subscriptions: req.member.stripe.subscriptions, subscribed: req.member.stripe.subscriptions.length !== 0 } : null;