enable.js
311 Bytes
const zk = require('./zk');
const _ = require('lodash');
const logger = global.yoho.logger;
module.exports = async({user}, next) => {
const enable = _.get(zk, `${user.app}.open.apmrisk`, false);
logger.debug('enable all ==>', enable);
if (!enable) {
return;
}
return next();
};