aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/database/PermissionsManager.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2016-03-08 22:05:40 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2016-03-08 22:05:40 +1300
commit1f2328bd8f4e341dda897fcd52418beb6cf1b83a (patch)
tree5d45665cc47058f7dddaf1f203914a5d832b996b /src/org/traccar/database/PermissionsManager.java
parentfef4d92b25ef420f2926865b073835132881e7d6 (diff)
downloadtrackermap-server-1f2328bd8f4e341dda897fcd52418beb6cf1b83a.tar.gz
trackermap-server-1f2328bd8f4e341dda897fcd52418beb6cf1b83a.tar.bz2
trackermap-server-1f2328bd8f4e341dda897fcd52418beb6cf1b83a.zip
Add new and update old data models
Diffstat (limited to 'src/org/traccar/database/PermissionsManager.java')
-rw-r--r--src/org/traccar/database/PermissionsManager.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/org/traccar/database/PermissionsManager.java b/src/org/traccar/database/PermissionsManager.java
index c676dea23..29228ceeb 100644
--- a/src/org/traccar/database/PermissionsManager.java
+++ b/src/org/traccar/database/PermissionsManager.java
@@ -22,7 +22,7 @@ import java.util.HashSet;
import java.util.Map;
import java.util.Set;
import org.traccar.helper.Log;
-import org.traccar.model.Permission;
+import org.traccar.model.DevicePermission;
import org.traccar.model.Server;
import org.traccar.model.User;
@@ -56,7 +56,7 @@ public class PermissionsManager {
for (User user : dataManager.getUsers()) {
users.put(user.getId(), user);
}
- for (Permission permission : dataManager.getPermissions()) {
+ for (DevicePermission permission : dataManager.getPermissions()) {
getPermissions(permission.getUserId()).add(permission.getDeviceId());
}
} catch (SQLException error) {