aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2024-04-07 15:06:58 -0700
committerAnton Tananaev <anton@traccar.org>2024-04-07 15:06:58 -0700
commit569bb18dcd0d8bbde92b5efdbbb21bc02d6e90ae (patch)
tree1e3372908ea59907699bc12bacfe32c8589caa41 /src/main/java/org
parent3d793f502e1d48eb9c1dd60005ccf6c8682d73ca (diff)
downloadtrackermap-server-569bb18dcd0d8bbde92b5efdbbb21bc02d6e90ae.tar.gz
trackermap-server-569bb18dcd0d8bbde92b5efdbbb21bc02d6e90ae.tar.bz2
trackermap-server-569bb18dcd0d8bbde92b5efdbbb21bc02d6e90ae.zip
No announcements for temporary users
Diffstat (limited to 'src/main/java/org')
-rw-r--r--src/main/java/org/traccar/api/resource/NotificationResource.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/api/resource/NotificationResource.java b/src/main/java/org/traccar/api/resource/NotificationResource.java
index 43dc1fa98..5eb9f6c62 100644
--- a/src/main/java/org/traccar/api/resource/NotificationResource.java
+++ b/src/main/java/org/traccar/api/resource/NotificationResource.java
@@ -120,7 +120,9 @@ public class NotificationResource extends ExtendedObjectResource<Notification> {
}
}
for (User user : users) {
- notificatorManager.getNotificator(notificator).send(user, message, null, null);
+ if (!user.getTemporary()) {
+ notificatorManager.getNotificator(notificator).send(user, message, null, null);
+ }
}
return Response.noContent().build();
}