aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAbyss777 <abyss@fox5.ru>2017-12-28 08:49:15 +0500
committerAbyss777 <abyss@fox5.ru>2017-12-28 08:49:15 +0500
commit71ef701357da0b4b5c8214418b6b149e87c16ac2 (patch)
treecec25dcca31ba5c88db721c750f88a0ddb541f8e /src
parentd489eac12119ed62f899569db121364b20b1c9dc (diff)
downloadtrackermap-server-71ef701357da0b4b5c8214418b6b149e87c16ac2.tar.gz
trackermap-server-71ef701357da0b4b5c8214418b6b149e87c16ac2.tar.bz2
trackermap-server-71ef701357da0b4b5c8214418b6b149e87c16ac2.zip
Remove unnecessary Context use
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 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);
}