aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/api/resource/SessionResource.java
diff options
context:
space:
mode:
authorAbyss777 <abyss@fox5.ru>2017-07-25 10:53:08 +0500
committerAbyss777 <abyss@fox5.ru>2017-07-25 11:00:06 +0500
commit68af658ea2ff9593e5be7a2b2cfcb75c744fd749 (patch)
treee40066f50ead2270bda27fd9ce2cbf4a702c09fd /src/org/traccar/api/resource/SessionResource.java
parent6253fa291c3a2962fef2076c0cbb0f4e1ca8a3b4 (diff)
downloadtrackermap-server-68af658ea2ff9593e5be7a2b2cfcb75c744fd749.tar.gz
trackermap-server-68af658ea2ff9593e5be7a2b2cfcb75c744fd749.tar.bz2
trackermap-server-68af658ea2ff9593e5be7a2b2cfcb75c744fd749.zip
Move users management to separate manager
Diffstat (limited to 'src/org/traccar/api/resource/SessionResource.java')
-rw-r--r--src/org/traccar/api/resource/SessionResource.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/api/resource/SessionResource.java b/src/org/traccar/api/resource/SessionResource.java
index acdbb7c87..fa2a14c6f 100644
--- a/src/org/traccar/api/resource/SessionResource.java
+++ b/src/org/traccar/api/resource/SessionResource.java
@@ -80,7 +80,7 @@ public class SessionResource extends BaseResource {
request.getSession().setAttribute(USER_ID_KEY, userId);
}
} else if (token != null) {
- User user = Context.getPermissionsManager().getUserByToken(token);
+ User user = Context.getUsersManager().getUserByToken(token);
if (user != null) {
userId = user.getId();
request.getSession().setAttribute(USER_ID_KEY, userId);