From feae70d7c16992142c045309df1de72f3205e0f6 Mon Sep 17 00:00:00 2001 From: Fabien O'Carroll Date: Tue, 6 Jul 2021 14:16:20 +0100 Subject: [PATCH] Restricted Stripe Checkout to Members without products refs https://github.com/TryGhost/Team/issues/858 Previously when complimentary access used a Stripe subscription under the hood, we were able to restrict access to Stripe Checkout based on whether or not a Member had an active Stripe subscription. This updates the logic in members-api to instead check for whether or not the member has 1-or-more products. --- package.json | 2 +- yarn.lock | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 0440468950..8cb52089ff 100644 --- a/package.json +++ b/package.json @@ -71,7 +71,7 @@ "@tryghost/limit-service": "0.6.1", "@tryghost/logging": "0.1.3", "@tryghost/magic-link": "1.0.5", - "@tryghost/members-api": "1.18.1", + "@tryghost/members-api": "1.19.0", "@tryghost/members-csv": "1.1.0", "@tryghost/members-ssr": "1.0.5", "@tryghost/mw-session-from-token": "0.1.22", diff --git a/yarn.lock b/yarn.lock index 3921057343..f59a05da57 100644 --- a/yarn.lock +++ b/yarn.lock @@ -887,10 +887,10 @@ jsonwebtoken "^8.5.1" lodash "^4.17.15" -"@tryghost/members-api@1.18.1": - version "1.18.1" - resolved "https://registry.yarnpkg.com/@tryghost/members-api/-/members-api-1.18.1.tgz#e02f7e88268517141293726d28ebc4dbbd3ac689" - integrity sha512-j21jQVlYtqbGMyd4IEX1A+UkEsrLXrBz7Dwiglt3Nyws3L9wmja4fRchP0+zffwBN9bwHmQSruJPbK3h/jR29w== +"@tryghost/members-api@1.19.0": + version "1.19.0" + resolved "https://registry.yarnpkg.com/@tryghost/members-api/-/members-api-1.19.0.tgz#e8ebafb6526080b5bc0fedc687c0334ba043d5c7" + integrity sha512-RAnLhyC071WXfA5NRNMTs9hiuY3d6djECGSYlsbbG/wLBXq8luziGQ6pLieCapkL3XbZFZG89nUOINiX55BbNQ== dependencies: "@tryghost/debug" "^0.1.2" "@tryghost/errors" "^0.2.9"