Skip to content
This repository was archived by the owner on May 5, 2021. It is now read-only.

Commit d7ec6cb

Browse files
committed
SORMAS-Foundation#3212 block messages to be sent to inactive users
1 parent 08e6202 commit d7ec6cb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sormas-backend/src/main/java/de/symeda/sormas/backend/common/MessagingService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ public void sendMessage(User recipient, String subject, String messageContent, M
9595
throws NotificationDeliveryFailedException {
9696

9797
// Don't send notifications to users that initiated an action
98-
if (recipient.equals(userService.getCurrentUser())) {
98+
if (recipient.equals(userService.getCurrentUser()) || !recipient.isActive()) {
9999
return;
100100
}
101101

0 commit comments

Comments
 (0)