Futa Arai před 2 roky
rodič
revize
1a04db4241
1 změnil soubory, kde provedl 1 přidání a 0 odebrání
  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
  * get all groups of Page that user is related to
  */
  */
 schema.methods.getUserRelatedGrantedGroups = async function(this: PageDocument, user): Promise<PopulatedGrantedGroup[]> {
 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 populatedPage = await this.populate<{grantedGroups: PopulatedGrantedGroup[] | null}>('grantedGroups.item');
   const userRelatedGroupIds = [
   const userRelatedGroupIds = [
     ...(await UserGroupRelation.findAllGroupsForUser(user)).map(ugr => ugr._id.toString()),
     ...(await UserGroupRelation.findAllGroupsForUser(user)).map(ugr => ugr._id.toString()),