aboutsummaryrefslogtreecommitdiff
path: root/src/org
diff options
context:
space:
mode:
Diffstat (limited to 'src/org')
-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 85ee11c40..cb410b7c0 100644
--- a/src/org/traccar/database/DeviceManager.java
+++ b/src/org/traccar/database/DeviceManager.java
@@ -113,7 +113,7 @@ public class DeviceManager extends BaseObjectManager<Device> implements Identity
if (Context.getPermissionsManager() != null) {
Set<Long> result = new HashSet<>();
for (long deviceId : Context.getPermissionsManager().getDevicePermissions(userId)) {
- Device device = Context.getIdentityManager().getById(deviceId);
+ Device device = getById(deviceId);
if (device != null && !device.getDisabled()) {
result.add(deviceId);
}