diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2016-07-11 23:23:21 +1200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-07-11 23:23:21 +1200 |
commit | a4a127b5255cd62aae25419dbf289a926c5adbfd (patch) | |
tree | 05b99cf458f597806cde9617fe28c5bccd557c22 /src/org/traccar/api/resource/GeofencePermissionResource.java | |
parent | 817360eee7dba57cf8b58e858f7acf60f27b5e68 (diff) | |
parent | 0bda01815c51b1f1e1d3e3eda592219eb39bf78b (diff) | |
download | trackermap-server-a4a127b5255cd62aae25419dbf289a926c5adbfd.tar.gz trackermap-server-a4a127b5255cd62aae25419dbf289a926c5adbfd.tar.bz2 trackermap-server-a4a127b5255cd62aae25419dbf289a926c5adbfd.zip |
Merge pull request #2099 from Abyss777/fix_groups_cache
Revert back groups cache and split refresh
Diffstat (limited to 'src/org/traccar/api/resource/GeofencePermissionResource.java')
-rw-r--r-- | src/org/traccar/api/resource/GeofencePermissionResource.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/org/traccar/api/resource/GeofencePermissionResource.java b/src/org/traccar/api/resource/GeofencePermissionResource.java index 329c72b07..3a82845f5 100644 --- a/src/org/traccar/api/resource/GeofencePermissionResource.java +++ b/src/org/traccar/api/resource/GeofencePermissionResource.java @@ -39,7 +39,7 @@ public class GeofencePermissionResource extends BaseResource { Context.getPermissionsManager().checkUser(getUserId(), entity.getUserId()); Context.getPermissionsManager().checkGeofence(getUserId(), entity.getGeofenceId()); Context.getDataManager().linkGeofence(entity.getUserId(), entity.getGeofenceId()); - Context.getGeofenceManager().refresh(); + Context.getGeofenceManager().refreshUserGeofences(); return Response.ok(entity).build(); } @@ -49,7 +49,7 @@ public class GeofencePermissionResource extends BaseResource { Context.getPermissionsManager().checkUser(getUserId(), entity.getUserId()); Context.getPermissionsManager().checkGeofence(getUserId(), entity.getGeofenceId()); Context.getDataManager().unlinkGeofence(entity.getUserId(), entity.getGeofenceId()); - Context.getGeofenceManager().refresh(); + Context.getGeofenceManager().refreshUserGeofences(); return Response.noContent().build(); } |