From 8e0976fc8f448f582b5b5d1a866b240fb6f1bc9b Mon Sep 17 00:00:00 2001 From: Rish Date: Tue, 29 Sep 2020 17:18:03 +0530 Subject: [PATCH] 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 --- core/server/services/members/middleware.js | 6 ------ 1 file changed, 6 deletions(-) diff --git a/core/server/services/members/middleware.js b/core/server/services/members/middleware.js index 7e7d555553..da3860d64c 100644 --- a/core/server/services/members/middleware.js +++ b/core/server/services/members/middleware.js @@ -1,6 +1,5 @@ const _ = require('lodash'); const logging = require('../../../shared/logging'); -const config = require('../../../shared/config'); const labsService = require('../labs'); const membersService = require('./index'); const urlUtils = require('../../../shared/url-utils'); @@ -116,11 +115,6 @@ const getMemberSiteData = async function (req, res) { members_support_address: supportAddress }; - // accent_color is currently an experimental feature - if (!config.get('enableDeveloperExperiments')) { - delete response.accent_color; - } - res.json({site: response}); };