Skip to content

Commit

Permalink
fix(implemnet fetch trainees such that any admin can see all trainees)
Browse files Browse the repository at this point in the history
delete filter by userId in getTrainees resolver

[Delivers #374]
  • Loading branch information
Yvan-David committed Oct 23, 2024
1 parent 3138d6b commit d3a2eb8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/resolvers/coordinatorResolvers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,7 @@ const manageStudentResolvers = {
return trainees.filter((user: any) => {
if (role === RoleOfUser.ADMIN) {
return (
user.team?.cohort?.program?.organization.name == org?.name &&
user.team?.cohort?.program?.organization.admin.includes(userId)
user.team?.cohort?.program?.organization.name == org?.name
)
}
if (role === RoleOfUser.MANAGER) {
Expand Down

0 comments on commit d3a2eb8

Please sign in to comment.