aboutsummaryrefslogtreecommitdiff
path: root/src/org
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2016-11-18 18:43:33 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2016-11-18 18:43:33 +1300
commitf35da3ffdf6f960a877149b72b819a1979c9395a (patch)
tree169a837eebb3cec8057463165d6aa2fa70d948f5 /src/org
parent2bd0cdf04b2849a510f178cafea17fffa5d34961 (diff)
downloadtraccar-server-f35da3ffdf6f960a877149b72b819a1979c9395a.tar.gz
traccar-server-f35da3ffdf6f960a877149b72b819a1979c9395a.tar.bz2
traccar-server-f35da3ffdf6f960a877149b72b819a1979c9395a.zip
Check user in session resource
Diffstat (limited to 'src/org')
-rw-r--r--src/org/traccar/api/resource/SessionResource.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/org/traccar/api/resource/SessionResource.java b/src/org/traccar/api/resource/SessionResource.java
index a459186fe..a61738c7e 100644
--- a/src/org/traccar/api/resource/SessionResource.java
+++ b/src/org/traccar/api/resource/SessionResource.java
@@ -73,6 +73,7 @@ public class SessionResource extends BaseResource {
}
if (userId != null) {
+ Context.getPermissionsManager().checkUser(userId);
return Context.getPermissionsManager().getUser(userId);
} else {
throw new WebApplicationException(Response.status(Response.Status.NOT_FOUND).build());