Skip to content

Commit

Permalink
defualt user list fix for tenant admin
Browse files Browse the repository at this point in the history
  • Loading branch information
vishnuvinay89 committed Dec 30, 2024
1 parent c4fae25 commit 9fafd66
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/adapters/postgres/user-adapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -351,6 +351,7 @@ async searchUser(
tenantCohortRoleMapping.cohortId = await this.getCohortIdsForTenant(userId, tenantId);
} else if (userRoles.code === "tenant_admin") {
tenantCohortRoleMapping.cohortId = [];
tenantCohortRoleMapping.tenantId= tenantId;
}

await this.processUserDetails(userSearchDto, results);
Expand Down

0 comments on commit 9fafd66

Please sign in to comment.