From 2aff9ed8ebfc238599f1787ed609dcec7f87f77a Mon Sep 17 00:00:00 2001 From: Hannah Wolfe Date: Tue, 9 Sep 2014 08:40:38 +0100 Subject: [PATCH] Force apps flag to be boolean in config API ref #3969 - it shouldn't be possible to set keys via this flag --- core/server/api/configuration.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/server/api/configuration.js b/core/server/api/configuration.js index 5302765848..afe241e044 100644 --- a/core/server/api/configuration.js +++ b/core/server/api/configuration.js @@ -11,7 +11,7 @@ var _ = require('lodash'), function getValidKeys() { var validKeys = { 'fileStorage': config.fileStorage === false ? false : true, - 'apps': config.apps || false, + 'apps': config.apps === true ? true : false, 'version': false, 'environment': process.env.NODE_ENV, 'database': config.database.client,