Ghost/core/server
Kevin Ansfield 65862b437e
Migrated 'invite' to 'all' for sites that were not truly invite-only (#12907)
refs https://github.com/TryGhost/Team/issues/579

The previous `members_allow_free_signup` -> `members_signup_access` migration made a direct correlation between the toggle `true/false` to `all/invite` under the assumption that behaviour between the two settings would be identical. The assumption was incorrect and the behaviour is changing so `invite` forces invite-only mode, stopping all front-end signup to free or paid plans with the free plan now being disabled via the portal plans setting.

- check existing `members_signup_access` setting and if it's `'invite'` migrate it to `'all'` where signup should still be possible. The "invite-only" mode should only be active if certain conditions are met:
  - Stripe is not configured ("allow free member signup" off and no Stripe showed "invite-only" in portal)
  - Stripe is configured but no plans are selected in portal (no plans showed "invite-only" in portal)
- when migrating `'invite'` to `'all'`, also remove `'free'` plan from the `portal_plans` setting to avoid previously paid-only sites unexpectedly showing a free plan on signup
2021-05-04 09:50:29 +01:00
..
adapters Expanded requires of lib/common i18n and events 2021-05-03 17:14:52 +01:00
api Expanded requires of lib/common i18n and events 2021-05-03 17:14:52 +01:00
data Migrated 'invite' to 'all' for sites that were not truly invite-only (#12907) 2021-05-04 09:50:29 +01:00
lib Expanded requires of lib/common i18n and events 2021-05-03 17:14:52 +01:00
models Expanded requires of lib/common i18n and events 2021-05-03 17:14:52 +01:00
public New logo in Admin (#12768) 2021-03-18 17:27:27 +00:00
services Expanded requires of lib/common i18n and events 2021-05-03 17:14:52 +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 Expanded requires of lib/common i18n and events 2021-05-03 17:14:52 +01:00
analytics-events.js Expanded requires of lib/common i18n and events 2021-05-03 17:14:52 +01:00
ghost-server.js Expanded requires of lib/common i18n and events 2021-05-03 17:14:52 +01:00
notify.js Refactored notify to send started + ready 2021-02-19 20:42:10 +00:00
overrides.js Moved sqlite3 override rules to db connection lib 2021-02-05 11:51:56 +00:00
update-check.js Expanded requires of lib/common i18n and events 2021-05-03 17:14:52 +01:00