Futa Arai 2 anni fa
parent
commit
1a04db4241
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. 1 0
      apps/app/src/server/models/page.ts

+ 1 - 0
apps/app/src/server/models/page.ts

@@ -1051,6 +1051,7 @@ schema.methods.calculateAndUpdateLatestRevisionBodyLength = async function(this:
  * get all groups of Page that user is related to
  */
 schema.methods.getUserRelatedGrantedGroups = async function(this: PageDocument, user): Promise<PopulatedGrantedGroup[]> {
+  // eslint-disable-next-line rulesdir/no-populate
   const populatedPage = await this.populate<{grantedGroups: PopulatedGrantedGroup[] | null}>('grantedGroups.item');
   const userRelatedGroupIds = [
     ...(await UserGroupRelation.findAllGroupsForUser(user)).map(ugr => ugr._id.toString()),