mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-02 15:55:08 +03:00
73f6fd8c51
no-issue This removes all references to the members labs setting, any code that was run conditionally behind this flag now runs unconditionally. * Removed usage of Members labs flag * Removed tests for Members disabled * Added dynamic keypair generation for when setting is missing
13 lines
299 B
JavaScript
13 lines
299 B
JavaScript
const errors = require('@tryghost/errors');
|
|
const labsUtil = require('../../../services/labs');
|
|
|
|
const labs = flag => (req, res, next) => {
|
|
if (labsUtil.isSet(flag) === true) {
|
|
return next();
|
|
} else {
|
|
return next(new errors.NotFoundError());
|
|
}
|
|
};
|
|
|
|
module.exports = labs;
|