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 24, 2024
1 parent 3138d6b commit 5e65797
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 5e65797

Please sign in to comment.