shop-allowed.js 221 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 10 11 /** * Created by TaoHuang on 2017/4/19. */ const _ = require('lodash'); module.exports = { isAllowdShopId: (shopId, req) => { return _.find(req.user.allowedShops, {shopsId: shopId}) ? true: false; } };