mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-27 22:49:56 -05:00
0225936292
refs https://github.com/TryGhost/Ghost/pull/11152 - Added subscribers table drop migration - Removed subscribers from schema - Removed subscribers controllers/routes/regression tests - Removed subscriber related API code - Removed subscribers from internal apps - Removed subscriber importer - Removed subscriber model - Removed subscriber related permissions - Removed webhook code related to subscribers - When upgrading to v3 it is on the site admin to migrate all zapps or any other webhook clients to use members - Removed subscriber-specific translation - Removed subscriber lab flag
14 lines
342 B
JavaScript
14 lines
342 B
JavaScript
const labsUtil = require('../../../services/labs');
|
|
const common = require('../../../lib/common');
|
|
|
|
const labs = flag => (req, res, next) => {
|
|
if (labsUtil.isSet(flag) === true) {
|
|
return next();
|
|
} else {
|
|
return next(new common.errors.NotFoundError());
|
|
}
|
|
};
|
|
|
|
labs.members = labs('members');
|
|
|
|
module.exports = labs;
|