0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00

Force apps flag to be boolean in config API

ref #3969

- it shouldn't be possible to set keys via this flag
This commit is contained in:
Hannah Wolfe 2014-09-09 08:40:38 +01:00
parent 9c0b203dce
commit 2aff9ed8eb

View file

@ -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,