diff options
author | Abyss777 <abyss@fox5.ru> | 2017-12-28 08:49:15 +0500 |
---|---|---|
committer | Abyss777 <abyss@fox5.ru> | 2017-12-28 08:49:15 +0500 |
commit | 71ef701357da0b4b5c8214418b6b149e87c16ac2 (patch) | |
tree | cec25dcca31ba5c88db721c750f88a0ddb541f8e /src/org/traccar/database | |
parent | d489eac12119ed62f899569db121364b20b1c9dc (diff) | |
download | trackermap-server-71ef701357da0b4b5c8214418b6b149e87c16ac2.tar.gz trackermap-server-71ef701357da0b4b5c8214418b6b149e87c16ac2.tar.bz2 trackermap-server-71ef701357da0b4b5c8214418b6b149e87c16ac2.zip |
Remove unnecessary Context use
Diffstat (limited to 'src/org/traccar/database')
-rw-r--r-- | src/org/traccar/database/DeviceManager.java | 2 |
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); } |