aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/database/UsersManager.java
diff options
context:
space:
mode:
authorAbyss777 <abyss@fox5.ru>2017-07-25 17:33:00 +0500
committerAbyss777 <abyss@fox5.ru>2017-07-26 13:18:36 +0500
commitbbcca3d65106069018e93a69b85290c075b128db (patch)
tree63e01dbf2ffc44e05fbf02a6a7cc0cb20c943d33 /src/org/traccar/database/UsersManager.java
parent234223a179d3f5e390cf8a649158676f8c349e5c (diff)
downloadtrackermap-server-bbcca3d65106069018e93a69b85290c075b128db.tar.gz
trackermap-server-bbcca3d65106069018e93a69b85290c075b128db.tar.bz2
trackermap-server-bbcca3d65106069018e93a69b85290c075b128db.zip
Split Drivers and Groups management
Diffstat (limited to 'src/org/traccar/database/UsersManager.java')
-rw-r--r--src/org/traccar/database/UsersManager.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/org/traccar/database/UsersManager.java b/src/org/traccar/database/UsersManager.java
index 3c9c8b280..cb4ea623f 100644
--- a/src/org/traccar/database/UsersManager.java
+++ b/src/org/traccar/database/UsersManager.java
@@ -16,6 +16,7 @@
*/
package org.traccar.database;
+import java.util.HashSet;
import java.util.Map;
import java.util.Set;
import java.util.concurrent.ConcurrentHashMap;
@@ -73,7 +74,10 @@ public class UsersManager extends SimpleObjectManager {
@Override
public Set<Long> getManagedItems(long userId) {
- return getUserItems(userId);
+ Set<Long> result = new HashSet<>();
+ result.addAll(getUserItems(userId));
+ result.add(userId);
+ return result;
}
public User getUserByToken(String token) {