aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/api/resource
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2016-07-14 08:56:45 +1200
committerGitHub <noreply@github.com>2016-07-14 08:56:45 +1200
commit82fd4d09aa7ac37bf2eb1857b12efbd3bc773a94 (patch)
tree59e55fd0c4f9bffa4c140982c7f040bb8636ad9b /src/org/traccar/api/resource
parentd154cb277fe2f7b5dfe6bdaee1a013729bbf22eb (diff)
parent7ce8c4ecf82828920926f81f55cbc4fb833ef259 (diff)
downloadtrackermap-server-82fd4d09aa7ac37bf2eb1857b12efbd3bc773a94.tar.gz
trackermap-server-82fd4d09aa7ac37bf2eb1857b12efbd3bc773a94.tar.bz2
trackermap-server-82fd4d09aa7ac37bf2eb1857b12efbd3bc773a94.zip
Merge pull request #2110 from Abyss777/master
Added possibility to forward all events
Diffstat (limited to 'src/org/traccar/api/resource')
-rw-r--r--src/org/traccar/api/resource/UserResource.java8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/org/traccar/api/resource/UserResource.java b/src/org/traccar/api/resource/UserResource.java
index cfe338b56..da72c7f47 100644
--- a/src/org/traccar/api/resource/UserResource.java
+++ b/src/org/traccar/api/resource/UserResource.java
@@ -52,9 +52,6 @@ public class UserResource extends BaseResource {
}
Context.getDataManager().addUser(entity);
Context.getPermissionsManager().refresh();
- if (Context.getGeofenceManager() != null) {
- Context.getGeofenceManager().refresh();
- }
if (Context.getNotificationManager() != null) {
Context.getNotificationManager().refresh();
}
@@ -71,9 +68,6 @@ public class UserResource extends BaseResource {
}
Context.getDataManager().updateUser(entity);
Context.getPermissionsManager().refresh();
- if (Context.getGeofenceManager() != null) {
- Context.getGeofenceManager().refresh();
- }
if (Context.getNotificationManager() != null) {
Context.getNotificationManager().refresh();
}
@@ -87,7 +81,7 @@ public class UserResource extends BaseResource {
Context.getDataManager().removeUser(id);
Context.getPermissionsManager().refresh();
if (Context.getGeofenceManager() != null) {
- Context.getGeofenceManager().refresh();
+ Context.getGeofenceManager().refreshUserGeofences();
}
if (Context.getNotificationManager() != null) {
Context.getNotificationManager().refresh();