Skip to content

Commit

Permalink
Remove unnecessary Context use
Browse files Browse the repository at this point in the history
  • Loading branch information
Abyss777 committed Dec 28, 2017
1 parent d489eac commit 71ef701
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/org/traccar/database/DeviceManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ public Set<Long> getUserItems(long userId) {
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);
}
Expand Down

0 comments on commit 71ef701

Please sign in to comment.