aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/Context.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/traccar/Context.java')
-rw-r--r--src/org/traccar/Context.java11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/org/traccar/Context.java b/src/org/traccar/Context.java
index ca45a34d6..dcab28a9c 100644
--- a/src/org/traccar/Context.java
+++ b/src/org/traccar/Context.java
@@ -15,8 +15,11 @@
*/
package org.traccar;
+import java.io.FileInputStream;
+import java.util.Properties;
import org.traccar.database.DataCache;
import org.traccar.database.DataManager;
+import org.traccar.database.PermissionsManager;
import org.traccar.geocode.GisgraphyReverseGeocoder;
import org.traccar.geocode.GoogleReverseGeocoder;
import org.traccar.geocode.NominatimReverseGeocoder;
@@ -24,10 +27,6 @@ import org.traccar.geocode.ReverseGeocoder;
import org.traccar.helper.Log;
import org.traccar.http.WebServer;
-import java.io.FileInputStream;
-import java.util.Properties;
-import org.traccar.database.PermissionsManager;
-
public class Context {
private static Properties properties;
@@ -92,7 +91,9 @@ public class Context {
dataManager = new DataManager(properties);
dataCache = new DataCache(dataManager);
- permissionsManager = new PermissionsManager();
+ if (Boolean.valueOf(properties.getProperty("http.new"))) {
+ permissionsManager = new PermissionsManager();
+ }
if (Boolean.parseBoolean(properties.getProperty("geocoder.enable"))) {
String type = properties.getProperty("geocoder.type");