diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2016-11-19 10:53:31 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2016-11-19 10:53:46 +1300 |
commit | f14c747e1dd04ad5514f9cff07ea2e5be0312683 (patch) | |
tree | 978253b934ecac4489bd852ae5cf429cd54378ce /src/org/traccar/api/resource/UserResource.java | |
parent | 387439f2e28058bbaa1695055bfaffd4b9e42560 (diff) | |
download | trackermap-server-f14c747e1dd04ad5514f9cff07ea2e5be0312683.tar.gz trackermap-server-f14c747e1dd04ad5514f9cff07ea2e5be0312683.tar.bz2 trackermap-server-f14c747e1dd04ad5514f9cff07ea2e5be0312683.zip |
Remove duplicated information in requests
Diffstat (limited to 'src/org/traccar/api/resource/UserResource.java')
-rw-r--r-- | src/org/traccar/api/resource/UserResource.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/api/resource/UserResource.java b/src/org/traccar/api/resource/UserResource.java index 2ff1639f6..a9edced25 100644 --- a/src/org/traccar/api/resource/UserResource.java +++ b/src/org/traccar/api/resource/UserResource.java @@ -59,7 +59,7 @@ public class UserResource extends BaseResource { @Path("{id}") @PUT - public Response update(@PathParam("id") long id, User entity) throws SQLException { + public Response update(User entity) throws SQLException { User old = Context.getPermissionsManager().getUser(entity.getId()); if (old.getExpirationTime() == null && entity.getExpirationTime() != null || old.getExpirationTime() != null && !old.getExpirationTime().equals(entity.getExpirationTime()) |