aboutsummaryrefslogtreecommitdiff
path: root/src/org
diff options
context:
space:
mode:
authorAbyss777 <abyss@fox5.ru>2017-01-27 09:17:27 +0500
committerAbyss777 <abyss@fox5.ru>2017-01-27 09:17:27 +0500
commit2cbfa0f2433455bf862e1de0ef5a40d7a8ead511 (patch)
treefd01da5eee26da788fb81bc74f52f77f0fc37ddb /src/org
parent3a0f3d948952c18260d739c02794848a2cfc0d25 (diff)
downloadtrackermap-server-2cbfa0f2433455bf862e1de0ef5a40d7a8ead511.tar.gz
trackermap-server-2cbfa0f2433455bf862e1de0ef5a40d7a8ead511.tar.bz2
trackermap-server-2cbfa0f2433455bf862e1de0ef5a40d7a8ead511.zip
Clear deviceUsers cache before refresh
Diffstat (limited to 'src/org')
-rw-r--r--src/org/traccar/database/PermissionsManager.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/org/traccar/database/PermissionsManager.java b/src/org/traccar/database/PermissionsManager.java
index 14cc8027a..78589ad88 100644
--- a/src/org/traccar/database/PermissionsManager.java
+++ b/src/org/traccar/database/PermissionsManager.java
@@ -151,6 +151,7 @@ public class PermissionsManager {
Log.warning(error);
}
+ deviceUsers.clear();
for (Map.Entry<Long, Set<Long>> entry : devicePermissions.entrySet()) {
for (long deviceId : entry.getValue()) {
getDeviceUsers(deviceId).add(entry.getKey());