소스 검색

null check

itizawa 7 년 전
부모
커밋
cea6d9ae5d
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/server/models/page.js

+ 1 - 1
src/server/models/page.js

@@ -1016,7 +1016,7 @@ module.exports = function(crowi) {
     validateCrowi();
 
     const Revision = crowi.model('Revision');
-    const grant = options.grant || null;
+    const grant = options.grant || GRANT_PUBLIC;
     const grantUserGroupId = options.grantUserGroupId || null;
     const isSyncRevisionToHackmd = options.isSyncRevisionToHackmd;
     const socketClientId = options.socketClientId || null;