aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/database/PermissionsManager.java
diff options
context:
space:
mode:
authorAbyss777 <abyss@fox5.ru>2016-07-20 10:45:52 +0500
committerAbyss777 <abyss@fox5.ru>2016-07-20 10:45:52 +0500
commit32a7fe7eb22d435906b65f91c37751ece4fea828 (patch)
tree988ea8c712656e913672fb85de992f353c51c16b /src/org/traccar/database/PermissionsManager.java
parent8e4d44e045c6e0c800b3b353f6f55c64d731428c (diff)
downloadtrackermap-server-32a7fe7eb22d435906b65f91c37751ece4fea828.tar.gz
trackermap-server-32a7fe7eb22d435906b65f91c37751ece4fea828.tar.bz2
trackermap-server-32a7fe7eb22d435906b65f91c37751ece4fea828.zip
- Move groups related actions to DeviceManager
- Removed cache updates from getXxxxById
Diffstat (limited to 'src/org/traccar/database/PermissionsManager.java')
-rw-r--r--src/org/traccar/database/PermissionsManager.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/org/traccar/database/PermissionsManager.java b/src/org/traccar/database/PermissionsManager.java
index 5a15375b4..d786dcc4e 100644
--- a/src/org/traccar/database/PermissionsManager.java
+++ b/src/org/traccar/database/PermissionsManager.java
@@ -78,7 +78,8 @@ public class PermissionsManager {
users.put(user.getId(), user);
}
- GroupTree groupTree = new GroupTree(dataManager.getAllGroups(), Context.getDeviceManager().getAllDevices());
+ GroupTree groupTree = new GroupTree(Context.getDeviceManager().getAllGroups(),
+ Context.getDeviceManager().getAllDevices());
for (GroupPermission permission : dataManager.getGroupPermissions()) {
Set<Long> userGroupPermissions = getGroupPermissions(permission.getUserId());
Set<Long> userDevicePermissions = getDevicePermissions(permission.getUserId());