aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/database
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2022-07-12 11:06:22 -0700
committerAnton Tananaev <anton@traccar.org>2022-07-12 11:06:22 -0700
commit3f46f759c24746ddd2b8cd05cfc6cb99d5f7fd48 (patch)
treedf5d4afa522f2287a60e351ebf7be972b86b65f9 /src/main/java/org/traccar/database
parent7ccffa266e87badbbcfde73db86216fd4c667f35 (diff)
downloadtrackermap-server-3f46f759c24746ddd2b8cd05cfc6cb99d5f7fd48.tar.gz
trackermap-server-3f46f759c24746ddd2b8cd05cfc6cb99d5f7fd48.tar.bz2
trackermap-server-3f46f759c24746ddd2b8cd05cfc6cb99d5f7fd48.zip
Filter notifications by device access (fix #4888)
Diffstat (limited to 'src/main/java/org/traccar/database')
-rw-r--r--src/main/java/org/traccar/database/NotificationManager.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/database/NotificationManager.java b/src/main/java/org/traccar/database/NotificationManager.java
index ecb44b1d4..5be627f2a 100644
--- a/src/main/java/org/traccar/database/NotificationManager.java
+++ b/src/main/java/org/traccar/database/NotificationManager.java
@@ -98,7 +98,7 @@ public class NotificationManager {
}
notifications.forEach(notification -> {
- cacheManager.getNotificationUsers(notification.getId()).forEach(user -> {
+ cacheManager.getNotificationUsers(notification.getId(), event.getDeviceId()).forEach(user -> {
for (String notificator : notification.getNotificatorsTypes()) {
try {
notificatorManager.getNotificator(notificator).send(user, event, position);