aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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));