aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/database/DriversManager.java
diff options
context:
space:
mode:
authorAbyss777 <abyss@fox5.ru>2017-07-14 11:59:31 +0500
committerAbyss777 <abyss@fox5.ru>2017-07-14 11:59:31 +0500
commitc0cbde51aa75a5b2df58b11e76527ee703289541 (patch)
tree394e18d9e36c1423843de01a88e290a4d25e099c /src/org/traccar/database/DriversManager.java
parent9949cadcdf3f07a4590742e2f0303d82efb653f9 (diff)
downloadtrackermap-server-c0cbde51aa75a5b2df58b11e76527ee703289541.tar.gz
trackermap-server-c0cbde51aa75a5b2df58b11e76527ee703289541.tar.bz2
trackermap-server-c0cbde51aa75a5b2df58b11e76527ee703289541.zip
Implement driverChanged event instead of driverUnauthorized
Diffstat (limited to 'src/org/traccar/database/DriversManager.java')
-rw-r--r--src/org/traccar/database/DriversManager.java16
1 files changed, 0 insertions, 16 deletions
diff --git a/src/org/traccar/database/DriversManager.java b/src/org/traccar/database/DriversManager.java
index cba2e14c1..e89d59311 100644
--- a/src/org/traccar/database/DriversManager.java
+++ b/src/org/traccar/database/DriversManager.java
@@ -210,20 +210,4 @@ public class DriversManager {
}
return drivers;
}
-
- public final boolean authorizeDriverByUniqueId(String driverUniqueId, long deviceId) {
- if (driversByUniqueId.containsKey(driverUniqueId)) {
- long chekingDriverId = getDriverByUniqueId(driverUniqueId).getId();
- Set<Long> deviceDrivers = getAllDeviceDrivers(deviceId);
- if (deviceDrivers.isEmpty()) {
- return true;
- }
- for (long driverId : deviceDrivers) {
- if (chekingDriverId == driverId) {
- return true;
- }
- }
- }
- return false;
- }
}