aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/api/BaseObjectResource.java
diff options
context:
space:
mode:
authorAbyss777 <abyss@fox5.ru>2018-01-11 14:28:02 +0500
committerAbyss777 <abyss@fox5.ru>2018-01-11 14:28:02 +0500
commitdf65b06ad4a7d072f1affb837733cebc7058c2c0 (patch)
tree4c6b5b7c4bf6e8028563661c6d7f8c6cda7ee3e9 /src/org/traccar/api/BaseObjectResource.java
parentdf584abd8c0be33c21870dc107ea3dd0d8bc2dfd (diff)
downloadtrackermap-server-df65b06ad4a7d072f1affb837733cebc7058c2c0.tar.gz
trackermap-server-df65b06ad4a7d072f1affb837733cebc7058c2c0.tar.bz2
trackermap-server-df65b06ad4a7d072f1affb837733cebc7058c2c0.zip
Update group and device cache on group delete.
Diffstat (limited to 'src/org/traccar/api/BaseObjectResource.java')
-rw-r--r--src/org/traccar/api/BaseObjectResource.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/org/traccar/api/BaseObjectResource.java b/src/org/traccar/api/BaseObjectResource.java
index 806c78624..3914f8cce 100644
--- a/src/org/traccar/api/BaseObjectResource.java
+++ b/src/org/traccar/api/BaseObjectResource.java
@@ -141,6 +141,10 @@ public abstract class BaseObjectResource<T extends BaseModel> extends BaseResour
}
}
if (baseClass.equals(Group.class) || baseClass.equals(Device.class) || baseClass.equals(User.class)) {
+ if (baseClass.equals(Group.class)) {
+ Context.getGroupsManager().updateGroupCache(true);
+ Context.getDeviceManager().updateDeviceCache(true);
+ }
Context.getPermissionsManager().refreshDeviceAndGroupPermissions();
if (baseClass.equals(User.class)) {
Context.getPermissionsManager().refreshAllUsersPermissions();