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.
This commit is contained in:
Fabien O'Carroll 2021-07-06 14:16:20 +01:00
parent 59dc2a9bc9
commit feae70d7c1
2 changed files with 5 additions and 5 deletions

View File

@ -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",

View File

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