mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-28 05:14:12 +03:00
eb585f9c02
closes: https://github.com/TryGhost/Ghost/issues/15506 - The sidebar items that don't open the editor were missing some relative current-when attributes so the nested views weren't considered "active".
22 lines
1.1 KiB
JavaScript
22 lines
1.1 KiB
JavaScript
export function enableMembers(server) {
|
|
server.db.settings.find({key: 'members_signup_access'})
|
|
? server.db.settings.update({key: 'members_signup_access'}, {value: 'all'})
|
|
: server.create('setting', {key: 'members_signup_access', value: 'all', group: 'members'});
|
|
|
|
server.db.settings.find({key: 'members_enabled'})
|
|
? server.db.settings.update({key: 'members_enabled'}, {value: true})
|
|
: server.create('setting', {key: 'members_enabled', value: true, group: 'members'});
|
|
}
|
|
|
|
export function disableMembers(server) {
|
|
server.db.settings.find({key: 'members_signup_access'})
|
|
? server.db.settings.update({key: 'members_signup_access'}, {value: 'none'})
|
|
: server.create('setting', {key: 'members_signup_access', value: 'none', group: 'members'});
|
|
}
|
|
|
|
export function enablePaidMembers(server) {
|
|
server.db.settings.find({key: 'paid_members_enabled'})
|
|
? server.db.settings.update({key: 'paid_members_enabled'}, {value: true})
|
|
: server.create('setting', {key: 'paid_members_enabled', value: true, group: 'members'});
|
|
}
|