aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/api
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2016-11-18 00:16:55 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2016-11-18 00:16:55 +1300
commit468e3b0aa03fbe69b4c590743cf9f6886ef99751 (patch)
tree5a663969b2701f3a8d092fc43437754ceda81cfa /src/org/traccar/api
parentaf6c734879aa483efcc8150d5fdb704f40fb59cd (diff)
downloadtrackermap-server-468e3b0aa03fbe69b4c590743cf9f6886ef99751.tar.gz
trackermap-server-468e3b0aa03fbe69b4c590743cf9f6886ef99751.tar.bz2
trackermap-server-468e3b0aa03fbe69b4c590743cf9f6886ef99751.zip
Check account on every call
Diffstat (limited to 'src/org/traccar/api')
-rw-r--r--src/org/traccar/api/SecurityRequestFilter.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/org/traccar/api/SecurityRequestFilter.java b/src/org/traccar/api/SecurityRequestFilter.java
index 598e4566d..be74a3607 100644
--- a/src/org/traccar/api/SecurityRequestFilter.java
+++ b/src/org/traccar/api/SecurityRequestFilter.java
@@ -80,6 +80,7 @@ public class SecurityRequestFilter implements ContainerRequestFilter {
Long userId = (Long) request.getSession().getAttribute(SessionResource.USER_ID_KEY);
if (userId != null) {
+ Context.getPermissionsManager().checkUser(userId);
Context.getStatisticsManager().registerRequest(userId);
securityContext = new UserSecurityContext(new UserPrincipal(userId));
}