Skip to content

Commit

Permalink
Show theses waiting for one's approval also when 'Kaikki tutkielmat' …
Browse files Browse the repository at this point in the history
…is not selected
  • Loading branch information
AleksTeresh committed Oct 17, 2024
1 parent 9bea50a commit 37fac1e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/server/routes/thesisHelpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ export const getFindThesesOptions = async ({
// if a user is only a teacher (not admin nor supervisor),
// they should only see theses they supervise
{ '$supervisionsForFiltering.user_id$': actionUser.id },
{ '$approvers.Approver.user_id$': actionUser.id },
// but we also want to show all theses within programs
// managed by the user
programIds?.length ? { programId: programIds } : {},
Expand Down

0 comments on commit 37fac1e

Please sign in to comment.