Skip to content

Commit

Permalink
Merge pull request #28 from vishnuvinay89/all-saas-0.2-dev
Browse files Browse the repository at this point in the history
Fix : Defualt user list issue
  • Loading branch information
sudeeppr1998 authored Feb 13, 2025
2 parents 323c21f + 952a4e5 commit 3deaec5
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 @@ -348,6 +348,7 @@ export class PostgresUserService implements IServicelocator {
const userRoles = await this.getUserRoles(userId, tenantId);

if (userRoles.code === "cohort_admin") {
tenantCohortRoleMapping.tenantId = "";
tenantCohortRoleMapping.cohortId = await this.getCohortIdsForTenant(userId, tenantId);
} else if (userRoles.code === "tenant_admin") {
tenantCohortRoleMapping.cohortId = [];
Expand Down

0 comments on commit 3deaec5

Please sign in to comment.