WNomunomu 1 год назад
Родитель
Сommit
0b8b57af81
1 измененных файлов с 1 добавлено и 4 удалено
  1. 1 4
      apps/app/src/server/routes/apiv3/page/update-page.ts

+ 1 - 4
apps/app/src/server/routes/apiv3/page/update-page.ts

@@ -175,10 +175,7 @@ export const updatePageHandlersFactory: UpdatePageHandlersFactory = (crowi) => {
           if (isGrantImmutable) {
           if (isGrantImmutable) {
             return res.apiv3Err(new ErrorV3('The grant settings for the specified page cannot be modified.', PageUpdateErrorCode.FORBIDDEN), 403);
             return res.apiv3Err(new ErrorV3('The grant settings for the specified page cannot be modified.', PageUpdateErrorCode.FORBIDDEN), 403);
           }
           }
-          else {
-            options.grant = grant;
-            options.userRelatedGrantUserGroupIds = userRelatedGrantUserGroupIds;
-          }
+          options.userRelatedGrantUserGroupIds = userRelatedGrantUserGroupIds;
         }
         }
         previousRevision = await Revision.findById(sanitizeRevisionId);
         previousRevision = await Revision.findById(sanitizeRevisionId);
         updatedPage = await crowi.pageService.updatePage(currentPage, body, previousRevision?.body ?? null, req.user, options);
         updatedPage = await crowi.pageService.updatePage(currentPage, body, previousRevision?.body ?? null, req.user, options);