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

Added signup access setting to preview

no refs

Allows Portal preview to use `members_signup_access` setting from the URL instead of relying on saved setting to change the preview without saving on Admin.
This commit is contained in:
Rishabh 2021-05-18 17:43:18 +05:30
parent 8044dc836a
commit d4fe243d43

View file

@ -242,6 +242,8 @@ export default class App extends React.Component {
data.site.disableBackground = JSON.parse(value);
} else if (key === 'allowSelfSignup') {
data.site.allow_self_signup = JSON.parse(value);
} else if (key === 'membersSignupAccess' && value) {
data.site.members_signup_access = value;
}
}
data.site.portal_plans = allowedPlans;