aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/database
diff options
context:
space:
mode:
authorAbyss777 <abyss@fox5.ru>2017-09-13 09:44:50 +0500
committerAbyss777 <abyss@fox5.ru>2017-09-13 09:44:50 +0500
commit0745524cc0a42165e7e1645bdc8d043bf6b8864f (patch)
tree9cd49ff111b79824617b8732c6af38814f2b7113 /src/org/traccar/database
parent7b3a3ca4592688f0946076628aa86241a41b1aa8 (diff)
downloadtraccar-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.java2
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 {