2
0
Эх сурвалжийг харах

fix static grant given to validateGrantChangeSyncronously

Futa Arai 2 жил өмнө
parent
commit
3bccab0b3b

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

@@ -2406,7 +2406,7 @@ class PageService implements IPageService {
         newChildGrantedGroups = this.getNewGrantedGroupsSyncronously(userRelatedGroups, userRelatedParentGrantedGroups, childPage);
         newChildGrantedGroups = this.getNewGrantedGroupsSyncronously(userRelatedGroups, userRelatedParentGrantedGroups, childPage);
       }
       }
       const canChangeGrant = this.pageGrantService
       const canChangeGrant = this.pageGrantService
-        .validateGrantChangeSyncronously(userRelatedGroups, childPage.grantedGroups, PageGrant.GRANT_USER_GROUP, newChildGrantedGroups);
+        .validateGrantChangeSyncronously(userRelatedGroups, childPage.grantedGroups, grant, newChildGrantedGroups);
       if (canChangeGrant) {
       if (canChangeGrant) {
         operations.push({
         operations.push({
           updateOne: {
           updateOne: {