0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-06 22:40:14 -05:00

Allowed accent color in members site data

no issue

- The accent_color setting was being removed from members site data when behind portal flag
- The accent color setting is now allowed in members site data for all cases as it doesn't make any sense to remove it specifically from here where we already have all the other Portal settings included which is a dev/portal flag feature anyways
This commit is contained in:
Rish 2020-09-29 17:18:03 +05:30
parent 854a41e556
commit 8e0976fc8f

View file

@ -1,6 +1,5 @@
const _ = require('lodash'); const _ = require('lodash');
const logging = require('../../../shared/logging'); const logging = require('../../../shared/logging');
const config = require('../../../shared/config');
const labsService = require('../labs'); const labsService = require('../labs');
const membersService = require('./index'); const membersService = require('./index');
const urlUtils = require('../../../shared/url-utils'); const urlUtils = require('../../../shared/url-utils');
@ -116,11 +115,6 @@ const getMemberSiteData = async function (req, res) {
members_support_address: supportAddress members_support_address: supportAddress
}; };
// accent_color is currently an experimental feature
if (!config.get('enableDeveloperExperiments')) {
delete response.accent_color;
}
res.json({site: response}); res.json({site: response});
}; };