aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/session
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2022-06-18 12:26:22 -0700
committerAnton Tananaev <anton@traccar.org>2022-06-18 12:26:22 -0700
commitb23ca6de800be9f2bbedcc4109a65f06bb245713 (patch)
tree7db9141b1413e7093ec252d9eab6accb4c10e55a /src/main/java/org/traccar/session
parent24140619789c88d96364673240b172bbd2ae2c82 (diff)
downloadtrackermap-server-b23ca6de800be9f2bbedcc4109a65f06bb245713.tar.gz
trackermap-server-b23ca6de800be9f2bbedcc4109a65f06bb245713.tar.bz2
trackermap-server-b23ca6de800be9f2bbedcc4109a65f06bb245713.zip
Remove permissions manager
Diffstat (limited to 'src/main/java/org/traccar/session')
-rw-r--r--src/main/java/org/traccar/session/ConnectionManager.java10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/main/java/org/traccar/session/ConnectionManager.java b/src/main/java/org/traccar/session/ConnectionManager.java
index 3fa467b57..38d82e848 100644
--- a/src/main/java/org/traccar/session/ConnectionManager.java
+++ b/src/main/java/org/traccar/session/ConnectionManager.java
@@ -164,16 +164,10 @@ public class ConnectionManager {
try {
device.setId(storage.addObject(device, new Request(new Columns.Exclude("id"))));
-
- LOGGER.info("Automatically registered device " + uniqueId);
-
- if (defaultGroupId != 0) {
- Context.getPermissionsManager().refreshDeviceAndGroupPermissions();
- }
-
+ LOGGER.info("Automatically registered " + uniqueId);
return device;
} catch (StorageException e) {
- LOGGER.warn("Automatic device registration error", e);
+ LOGGER.warn("Automatic registration failed", e);
return null;
}
}