diff options
author | Abyss777 <abyss@fox5.ru> | 2016-08-23 14:48:01 +0500 |
---|---|---|
committer | Abyss777 <abyss@fox5.ru> | 2016-08-23 14:48:01 +0500 |
commit | 21bf1014e55ab8049e18ee991c6ee80b23d1789c (patch) | |
tree | 1b69c9e0e303773fc5d85958ac6bd369471b9637 /src/org/traccar/api/resource/DeviceResource.java | |
parent | 5536fbe00c022c151007ad077d911b5162201cd4 (diff) | |
download | trackermap-server-21bf1014e55ab8049e18ee991c6ee80b23d1789c.tar.gz trackermap-server-21bf1014e55ab8049e18ee991c6ee80b23d1789c.tar.bz2 trackermap-server-21bf1014e55ab8049e18ee991c6ee80b23d1789c.zip |
Implement cache for users objects
Diffstat (limited to 'src/org/traccar/api/resource/DeviceResource.java')
-rw-r--r-- | src/org/traccar/api/resource/DeviceResource.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/org/traccar/api/resource/DeviceResource.java b/src/org/traccar/api/resource/DeviceResource.java index f48df7553..b12ab8c36 100644 --- a/src/org/traccar/api/resource/DeviceResource.java +++ b/src/org/traccar/api/resource/DeviceResource.java @@ -59,7 +59,7 @@ public class DeviceResource extends BaseResource { Context.getPermissionsManager().checkReadonly(getUserId()); Context.getDeviceManager().addDevice(entity); Context.getDataManager().linkDevice(getUserId(), entity.getId()); - Context.getPermissionsManager().refresh(); + Context.getPermissionsManager().refreshPermissions(); if (Context.getGeofenceManager() != null) { Context.getGeofenceManager().refresh(); } @@ -84,7 +84,7 @@ public class DeviceResource extends BaseResource { Context.getPermissionsManager().checkReadonly(getUserId()); Context.getPermissionsManager().checkDevice(getUserId(), id); Context.getDeviceManager().removeDevice(id); - Context.getPermissionsManager().refresh(); + Context.getPermissionsManager().refreshPermissions(); if (Context.getGeofenceManager() != null) { Context.getGeofenceManager().refresh(); } |