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.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/org/traccar/Context.java b/src/org/traccar/Context.java
index c34ceb3a7..af32267c9 100644
--- a/src/org/traccar/Context.java
+++ b/src/org/traccar/Context.java
@@ -25,6 +25,7 @@ import org.traccar.http.WebServer;
import java.io.FileInputStream;
import java.util.Properties;
+import org.traccar.database.PermissionsManager;
public class Context {
@@ -52,6 +53,12 @@ public class Context {
return dataCache;
}
+ private static PermissionsManager permissionsManager;
+
+ public static PermissionsManager getPermissionsManager() {
+ return permissionsManager;
+ }
+
private static ReverseGeocoder reverseGeocoder;
public static ReverseGeocoder getReverseGeocoder() {
@@ -84,6 +91,7 @@ public class Context {
dataManager = new DataManager(properties);
dataCache = new DataCache(dataManager);
+ permissionsManager = new PermissionsManager();
if (Boolean.parseBoolean(properties.getProperty("geocoder.enable"))) {
String type = properties.getProperty("geocoder.type");