aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/api/resource/GroupResource.java
diff options
context:
space:
mode:
authorAbyss777 <abyss@fox5.ru>2016-08-23 14:48:01 +0500
committerAbyss777 <abyss@fox5.ru>2016-08-23 14:48:01 +0500
commit21bf1014e55ab8049e18ee991c6ee80b23d1789c (patch)
tree1b69c9e0e303773fc5d85958ac6bd369471b9637 /src/org/traccar/api/resource/GroupResource.java
parent5536fbe00c022c151007ad077d911b5162201cd4 (diff)
downloadtrackermap-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/GroupResource.java')
-rw-r--r--src/org/traccar/api/resource/GroupResource.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/org/traccar/api/resource/GroupResource.java b/src/org/traccar/api/resource/GroupResource.java
index eec28e325..6b722ef6d 100644
--- a/src/org/traccar/api/resource/GroupResource.java
+++ b/src/org/traccar/api/resource/GroupResource.java
@@ -58,7 +58,7 @@ public class GroupResource extends BaseResource {
Context.getPermissionsManager().checkReadonly(getUserId());
Context.getDeviceManager().addGroup(entity);
Context.getDataManager().linkGroup(getUserId(), entity.getId());
- Context.getPermissionsManager().refresh();
+ Context.getPermissionsManager().refreshPermissions();
if (Context.getGeofenceManager() != null) {
Context.getGeofenceManager().refresh();
}
@@ -83,7 +83,7 @@ public class GroupResource extends BaseResource {
Context.getPermissionsManager().checkReadonly(getUserId());
Context.getPermissionsManager().checkGroup(getUserId(), id);
Context.getDeviceManager().removeGroup(id);
- Context.getPermissionsManager().refresh();
+ Context.getPermissionsManager().refreshPermissions();
if (Context.getGeofenceManager() != null) {
Context.getGeofenceManager().refresh();
}