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) {