瀏覽代碼

delete grant check

itizawa 7 年之前
父節點
當前提交
8f17d34155
共有 1 個文件被更改,包括 0 次插入4 次删除
  1. 0 4
      src/server/routes/page.js

+ 0 - 4
src/server/routes/page.js

@@ -633,10 +633,6 @@ module.exports = function(crowi, app) {
       return res.json(ApiResponse.error('page_id and body are required.'));
     }
 
-    if (!grant) {
-      return res.json(ApiResponse.error('Grant is not selected'));
-    }
-
     // check page existence
     const isExist = await Page.count({ _id: pageId }) > 0;
     if (!isExist) {