diff options
Diffstat (limited to 'src/org/traccar/http/UserServlet.java')
-rw-r--r-- | src/org/traccar/http/UserServlet.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/org/traccar/http/UserServlet.java b/src/org/traccar/http/UserServlet.java index 19a70ac93..71af74485 100644 --- a/src/org/traccar/http/UserServlet.java +++ b/src/org/traccar/http/UserServlet.java @@ -48,6 +48,7 @@ public class UserServlet extends BaseServlet { User user = JsonConverter.objectFromJson(req.getReader(), new User()); Context.getPermissionsManager().checkUser(getUserId(req), user.getId()); Context.getDataManager().addUser(user); + Context.getPermissionsManager().refresh(); sendResponse(resp.getWriter(), JsonConverter.objectToJson(user)); } @@ -59,6 +60,7 @@ public class UserServlet extends BaseServlet { Context.getPermissionsManager().checkUser(getUserId(req), user.getId()); } Context.getDataManager().updateUser(user); + Context.getPermissionsManager().refresh(); sendResponse(resp.getWriter(), true); } @@ -66,6 +68,7 @@ public class UserServlet extends BaseServlet { User user = JsonConverter.objectFromJson(req.getReader(), new User()); Context.getPermissionsManager().checkUser(getUserId(req), user.getId()); Context.getDataManager().removeUser(user); + Context.getPermissionsManager().refresh(); sendResponse(resp.getWriter(), true); } |