JOE
2018-10-29 253b86b92aa44d62d82417de28e862caf1867560
modify auth condition
1 files modified
3 ■■■■■ changed files
util/util.js 3 ●●●●● patch | view | raw | blame | history
util/util.js
....@@ -188,6 +188,9 @@
188188
189189 Modules.findOne({path: url}).then(function (module) {
190190 // res.json(module);
191
+ if(module == null)
192
+ resolve(false);
193
+
191194 const moduleId = module._id;
192195 if(-1 < data.accessibles.indexOf(moduleId)) {
193196 resolve(true);