Skip to content

Commit

Permalink
Stop les emails de réponses aux aidants
Browse files Browse the repository at this point in the history
  • Loading branch information
niladic committed Oct 9, 2024
1 parent 8cd22d0 commit d236387
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/services/NotificationService.scala
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,8 @@ class NotificationService @Inject() (
!Authorization.canSeeAnswer(answer, application)(Authorization.readUserRights(user))
) {
None
} else if (!user.instructor) { // Temporary case
None
} else if (answer.invitedUsers.contains(user.id)) {
Some(generateInvitationEmail(application, Some(answer))(user))
} else {
Expand Down

0 comments on commit d236387

Please sign in to comment.