mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-06 02:44:33 +03:00
adde1fa01c
refs https://github.com/TryGhost/members.js/issues/6 Fixed a bug in setting `allowSelfSignup` value as public plans
27 lines
852 B
JavaScript
27 lines
852 B
JavaScript
const ghostVersion = require('../../lib/ghost-version');
|
|
const settingsCache = require('../../services/settings/cache');
|
|
const urlUtils = require('../../lib/url-utils');
|
|
const membersService = require('../../services/members');
|
|
|
|
const site = {
|
|
docName: 'site',
|
|
|
|
read: {
|
|
permissions: false,
|
|
query() {
|
|
return {
|
|
title: settingsCache.get('title'),
|
|
description: settingsCache.get('description'),
|
|
logo: settingsCache.get('logo'),
|
|
brand: settingsCache.get('brand'),
|
|
url: urlUtils.urlFor('home', true),
|
|
plans: membersService.config.getPublicPlans(),
|
|
allowSelfSignup: membersService.config.getAllowSelfSignup(),
|
|
version: ghostVersion.safe
|
|
};
|
|
}
|
|
}
|
|
};
|
|
|
|
module.exports = site;
|