0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-03 23:00:14 -05:00

Added labels/products data to members identity

refs https://github.com/TryGhost/Team/issues/909
refs 3e13a6c562

`labels` and `products` data on member is needed for content gating post access for new segmented access
This commit is contained in:
Rishabh 2021-07-22 12:52:02 +05:30
parent 45ba046ad5
commit e28a19178d

View file

@ -269,7 +269,9 @@ module.exports = function MembersAPI({
const model = await users.get({email}, {
withRelated: [
'stripeSubscriptions',
'stripeSubscriptions.stripePrice'
'stripeSubscriptions.stripePrice',
'labels',
'products'
]
});
if (!model) {