0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-06 22:40:14 -05:00
ghost/core/server/utils/labs.js

10 lines
263 B
JavaScript
Raw Normal View History

var settingsCache = require('../settings/cache'),
flagIsSet;
flagIsSet = function flagIsSet(flag) {
var labsConfig = settingsCache.get('labs');
return labsConfig && labsConfig[flag] && labsConfig[flag] === true;
};
module.exports.isSet = flagIsSet;