mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-18 16:01:40 +03:00
12 lines
576 B
JavaScript
12 lines
576 B
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'});
|
||
|
}
|
||
|
|
||
|
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'});
|
||
|
}
|