aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAbyss777 <abyss@fox5.ru>2017-06-13 09:52:55 +0500
committerAbyss777 <abyss@fox5.ru>2017-06-13 09:52:55 +0500
commit3cdcce26fded7c88109ff98f7e947902ca116452 (patch)
tree0e945638f504dac9e3d566b546fc5ce01a3a70da
parentd6e9efc48fca16263d6ac50aa063b1da8f14b125 (diff)
downloadtraccar-server-3cdcce26fded7c88109ff98f7e947902ca116452.tar.gz
traccar-server-3cdcce26fded7c88109ff98f7e947902ca116452.tar.bz2
traccar-server-3cdcce26fded7c88109ff98f7e947902ca116452.zip
Fix managed devices enumerating
-rw-r--r--src/org/traccar/database/DeviceManager.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/database/DeviceManager.java b/src/org/traccar/database/DeviceManager.java
index 68e2e8262..f2a2dd565 100644
--- a/src/org/traccar/database/DeviceManager.java
+++ b/src/org/traccar/database/DeviceManager.java
@@ -190,7 +190,7 @@ public class DeviceManager implements IdentityManager {
}
public Collection<Device> getManagedDevices(long userId) throws SQLException {
- Collection<Device> devices = new ArrayList<>();
+ Collection<Device> devices = new HashSet<>();
devices.addAll(getDevices(userId));
for (long managedUserId : Context.getPermissionsManager().getUserPermissions(userId)) {
devices.addAll(getDevices(managedUserId));