Yuki Takei 2 ani în urmă
părinte
comite
a426471b82

+ 1 - 1
apps/app/src/server/routes/apiv3/page/index.js

@@ -175,7 +175,7 @@ module.exports = (crowi) => {
   const addActivity = generateAddActivityMiddleware(crowi);
 
   const globalNotificationService = crowi.getGlobalNotificationService();
-  const { Page, GlobalNotificationSetting } = crowi.models;
+  const { Page } = crowi.models;
   const { pageService, exportService } = crowi;
 
   const activityEvent = crowi.event('activity');

+ 0 - 5
apps/app/src/server/routes/apiv3/pages/index.js

@@ -309,11 +309,6 @@ module.exports = (crowi) => {
 
     let { path, grant, grantUserGroupIds } = req.body;
 
-    // TODO: remove in https://redmine.weseek.co.jp/issues/136136
-    if (grantUserGroupIds != null && grantUserGroupIds.length > 1) {
-      return res.apiv3Err('Cannot grant multiple groups to page at the moment');
-    }
-
     // check whether path starts slash
     path = addHeadingSlash(path);