Bläddra i källkod

check permissions and create a page

Shun Miyazawa 4 år sedan
förälder
incheckning
447bf8efbb
1 ändrade filer med 3 tillägg och 1 borttagningar
  1. 3 1
      packages/app/src/components/Sidebar/PageTree/Item.tsx

+ 3 - 1
packages/app/src/components/Sidebar/PageTree/Item.tsx

@@ -8,7 +8,7 @@ import { useDrag, useDrop } from 'react-dnd';
 
 
 import nodePath from 'path';
 import nodePath from 'path';
 
 
-import { pathUtils } from '@growi/core';
+import { pathUtils, pagePathUtils } from '@growi/core';
 
 
 import { toastWarning, toastError, toastSuccess } from '~/client/util/apiNotification';
 import { toastWarning, toastError, toastSuccess } from '~/client/util/apiNotification';
 
 
@@ -266,6 +266,8 @@ const Item: FC<ItemProps> = (props: ItemProps) => {
     const body = {
     const body = {
       path: newPagePath,
       path: newPagePath,
       body: initialBody,
       body: initialBody,
+      grant: page.grant,
+      grantUserGroupId: page.grantedGroup,
     };
     };
 
 
     try {
     try {