aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2017-01-27 17:20:32 +1300
committerGitHub <noreply@github.com>2017-01-27 17:20:32 +1300
commit6b77ba3ae328e3eeecb3d770a2a2de39afe81341 (patch)
treefd01da5eee26da788fb81bc74f52f77f0fc37ddb
parent3a0f3d948952c18260d739c02794848a2cfc0d25 (diff)
parent2cbfa0f2433455bf862e1de0ef5a40d7a8ead511 (diff)
downloadtrackermap-server-6b77ba3ae328e3eeecb3d770a2a2de39afe81341.tar.gz
trackermap-server-6b77ba3ae328e3eeecb3d770a2a2de39afe81341.tar.bz2
trackermap-server-6b77ba3ae328e3eeecb3d770a2a2de39afe81341.zip
Merge pull request #2838 from Abyss777/fix_2836
Clear deviceUsers cache before refresh
-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());