Skip to content

Commit

Permalink
Merge pull request #14 from vishnuvinay89/all-saas-0.2-dev
Browse files Browse the repository at this point in the history
defualt user list fix for tenant admin
  • Loading branch information
sudeeppr1998 authored Dec 30, 2024
2 parents c4fae25 + 9fafd66 commit 8b5ecd8
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 8b5ecd8

Please sign in to comment.