From 253b86b92aa44d62d82417de28e862caf1867560 Mon Sep 17 00:00:00 2001
From: JOE <[email protected]>
Date: Mon, 29 Oct 2018 15:58:21 +0900
Subject: [PATCH] modify auth condition

---
 util/util.js |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/util/util.js b/util/util.js
index 2ffedc1..990fe0e 100644
--- a/util/util.js
+++ b/util/util.js
@@ -188,6 +188,9 @@
 
 		    		Modules.findOne({path: url}).then(function (module) {
 				 		// res.json(module);
+				 		if(module == null)
+				 			resolve(false);
+				 		
 				 		const moduleId = module._id;
 				 		if(-1 < data.accessibles.indexOf(moduleId)) {
 				 			resolve(true);

--
Gitblit v1.6.2