diff options
author | Abyss777 <abyss@fox5.ru> | 2017-09-13 09:44:50 +0500 |
---|---|---|
committer | Abyss777 <abyss@fox5.ru> | 2017-09-13 09:44:50 +0500 |
commit | 0745524cc0a42165e7e1645bdc8d043bf6b8864f (patch) | |
tree | 9cd49ff111b79824617b8732c6af38814f2b7113 /src/org/traccar/database | |
parent | 7b3a3ca4592688f0946076628aa86241a41b1aa8 (diff) | |
download | traccar-server-0745524cc0a42165e7e1645bdc8d043bf6b8864f.tar.gz traccar-server-0745524cc0a42165e7e1645bdc8d043bf6b8864f.tar.bz2 traccar-server-0745524cc0a42165e7e1645bdc8d043bf6b8864f.zip |
Fix security check
Diffstat (limited to 'src/org/traccar/database')
-rw-r--r-- | src/org/traccar/database/CommandsManager.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/database/CommandsManager.java b/src/org/traccar/database/CommandsManager.java index ded12e0d2..6eb6d9035 100644 --- a/src/org/traccar/database/CommandsManager.java +++ b/src/org/traccar/database/CommandsManager.java @@ -39,7 +39,7 @@ public class CommandsManager extends ExtendedObjectManager<Command> { } public boolean checkDeviceCommand(long deviceId, long commandId) { - return getAllDeviceItems(deviceId).contains(commandId); + return !getAllDeviceItems(deviceId).contains(commandId); } public void sendCommand(Command command) throws Exception { |