aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/api/resource/UserResource.java
diff options
context:
space:
mode:
authorninioe <ninioe@gmail.com>2016-07-17 09:55:25 +0300
committerninioe <ninioe@gmail.com>2016-07-17 09:55:25 +0300
commit5380ff196c88cc6b57fff62db71e4ab3a05aaa98 (patch)
tree636f455a5d2a946ccff892ea6db84fb155ff8f69 /src/org/traccar/api/resource/UserResource.java
parent4d55b911bd252c90d1d0ec4053d8502154192676 (diff)
parent6dfd599ef69fac9ea0851e3c07873c6368231610 (diff)
downloadtrackermap-server-5380ff196c88cc6b57fff62db71e4ab3a05aaa98.tar.gz
trackermap-server-5380ff196c88cc6b57fff62db71e4ab3a05aaa98.tar.bz2
trackermap-server-5380ff196c88cc6b57fff62db71e4ab3a05aaa98.zip
Merge remote-tracking branch 'refs/remotes/tananaev/master'
Diffstat (limited to 'src/org/traccar/api/resource/UserResource.java')
-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();