2
0
Yuki Takei 2 жил өмнө
parent
commit
31157ca589

+ 2 - 2
apps/app/src/server/service/page/index.ts

@@ -3750,7 +3750,7 @@ class PageService implements IPageService {
 
     // Determine grantData
     const grant = options.grant ?? closestAncestor?.grant ?? PageGrant.GRANT_PUBLIC;
-    const grantedUserIds = grant === PageGrant.GRANT_OWNER ? [user._id] : undefined;
+    const grantUserIds = grant === PageGrant.GRANT_OWNER ? [user._id] : undefined;
     const grantUserGroupIds = options.grantUserGroupIds
       ?? (
         closestAncestor != null
@@ -3759,7 +3759,7 @@ class PageService implements IPageService {
       );
     const grantData = {
       grant,
-      grantedUserIds,
+      grantUserIds,
       grantUserGroupIds,
     };