aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/config
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2024-04-13 07:25:54 -0700
committerAnton Tananaev <anton@traccar.org>2024-04-13 07:25:54 -0700
commit725d738de64bd7df7ec05786baf6590c15a105b9 (patch)
tree060137afc6b1b1a50e1663b1a336734aaf1985b7 /src/main/java/org/traccar/config
parent22228ea159618627c0b6d79c1ad7e87eadbeb598 (diff)
downloadtrackermap-server-725d738de64bd7df7ec05786baf6590c15a105b9.tar.gz
trackermap-server-725d738de64bd7df7ec05786baf6590c15a105b9.tar.bz2
trackermap-server-725d738de64bd7df7ec05786baf6590c15a105b9.zip
Option to block notifications for users
Diffstat (limited to 'src/main/java/org/traccar/config')
-rw-r--r--src/main/java/org/traccar/config/Keys.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/main/java/org/traccar/config/Keys.java b/src/main/java/org/traccar/config/Keys.java
index d346084bd..db3c5c9ed 100644
--- a/src/main/java/org/traccar/config/Keys.java
+++ b/src/main/java/org/traccar/config/Keys.java
@@ -1261,6 +1261,13 @@ public final class Keys {
List.of(KeyType.CONFIG));
/**
+ * Block notifications for specific users. The value should be a comma-separated list of internal user ids.
+ */
+ public static final ConfigKey<String> NOTIFICATION_BLOCK_USERS = new StringConfigKey(
+ "notification.block.users",
+ List.of(KeyType.CONFIG));
+
+ /**
* Maximum time period for reports in seconds. Can be useful to prevent users to request unreasonably long reports.
* By default, there is no limit.
*/