diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2015-06-13 17:41:04 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2015-06-13 17:41:04 +1200 |
commit | 408758d371eaeb2ce25c1e8214f591200e741aaf (patch) | |
tree | a266c7f98d692e6e73e9be50bb42d8675370fa5d /src/org/traccar/database/PermissionsManager.java | |
parent | fc75fe4ab4f8ea9de58c41772fdd92c10c73f2bc (diff) | |
download | trackermap-server-408758d371eaeb2ce25c1e8214f591200e741aaf.tar.gz trackermap-server-408758d371eaeb2ce25c1e8214f591200e741aaf.tar.bz2 trackermap-server-408758d371eaeb2ce25c1e8214f591200e741aaf.zip |
Fix minor permissions issues
Diffstat (limited to 'src/org/traccar/database/PermissionsManager.java')
-rw-r--r-- | src/org/traccar/database/PermissionsManager.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/database/PermissionsManager.java b/src/org/traccar/database/PermissionsManager.java index f34fecb08..683f54cb4 100644 --- a/src/org/traccar/database/PermissionsManager.java +++ b/src/org/traccar/database/PermissionsManager.java @@ -75,7 +75,7 @@ public class PermissionsManager { } public void checkDevice(long userId, long deviceId) throws SecurityException { - if (getNotNull(userId).contains(deviceId)) { + if (!getNotNull(userId).contains(deviceId)) { throw new SecurityException("Device access denied"); } } |