itizawa 6 лет назад
Родитель
Сommit
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.'));
       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
     // check page existence
     const isExist = await Page.count({ _id: pageId }) > 0;
     const isExist = await Page.count({ _id: pageId }) > 0;
     if (!isExist) {
     if (!isExist) {