0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-24 23:48:13 -05:00
ghost/core/server
Kevin Ansfield cf29ed8c30
Updated members allowSelfSignup() to take portal plans into account (#12909)
refs https://github.com/TryGhost/Team/issues/579

`members_signup_access = 'invite'` now forces invite-only mode so both free and paid setups both use the `'all'` setting. To ensure we're properly allowing/disabling free (self signup) signups in the members API we need to update `allowSelfSignup()` to take additional settings into account.

- `true` when Stripe is not connected. There are no paid plans available in this configuration so free signup is always enabled. To disable free signup on a site with no Stripe setup the members signup access should be set to `invite` or `none`.
- `true` when Stripe is configured and free plan is enabled in portal, without it Members API would not send magic link emails to signup requests
- `false` in all other situations such as invite-only and members-disabled signup access modes, or when the free plan has been disabled in portal configuration
2021-04-27 16:22:43 +01:00
..
adapters
api Moved theme service to core/server 2021-04-27 15:14:49 +01:00
data 🐛 Fixed Ghost 4.3.0 migration that put all sites into "allow free members signup" (#12904) 2021-04-27 15:37:41 +01:00
lib Added mobiledoc.ghostVersion to blank mobiledoc document 2021-02-15 18:10:56 +00:00
models Updated subscriptions for Members Admin API 2021-04-26 17:14:34 +01:00
public New logo in Admin (#12768) 2021-03-18 17:27:27 +00:00
services Updated members allowSelfSignup() to take portal plans into account (#12909) 2021-04-27 16:22:43 +01:00
translations Added Products API to Admin API 2021-04-20 13:04:51 +01:00
views Added new, simpler, linear boot process 2021-02-08 11:56:44 +00:00
web Updated subscriptions for Members Admin API 2021-04-26 17:14:34 +01:00
analytics-events.js Wrapped analytics tracker in try-catch 2021-02-24 15:57:38 +00:00
ghost-server.js Cleaned up use of express in ghost-server 2021-02-23 12:33:00 +00:00
notify.js Refactored notify to send started + ready 2021-02-19 20:42:10 +00:00
overrides.js
update-check.js