diff options
author | parveenkumaryadav <parveenkumardeeva@gmail.com> | 2018-01-10 16:17:25 +0530 |
---|---|---|
committer | parveenkumaryadav <parveenkumardeeva@gmail.com> | 2018-01-10 16:17:25 +0530 |
commit | 6428e67fe7732d15adcf27ffd261e3eda96840cd (patch) | |
tree | c58269dbcb12378f56875379d24b356b7e96ab12 /src/org/traccar/api | |
parent | 8dad0208975bf29e868a5ca9b6a844863f50d86c (diff) | |
download | traccar-server-6428e67fe7732d15adcf27ffd261e3eda96840cd.tar.gz traccar-server-6428e67fe7732d15adcf27ffd261e3eda96840cd.tar.bz2 traccar-server-6428e67fe7732d15adcf27ffd261e3eda96840cd.zip |
Remove Odometer permission to User bug fix
Diffstat (limited to 'src/org/traccar/api')
-rw-r--r-- | src/org/traccar/api/resource/DeviceResource.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/api/resource/DeviceResource.java b/src/org/traccar/api/resource/DeviceResource.java index c432a04f4..c04b3b474 100644 --- a/src/org/traccar/api/resource/DeviceResource.java +++ b/src/org/traccar/api/resource/DeviceResource.java @@ -88,7 +88,7 @@ public class DeviceResource extends BaseObjectResource<Device> { @Path("{id}/distance") @PUT public Response updateTotalDistance(DeviceTotalDistance entity) throws SQLException { - Context.getPermissionsManager().checkDevice(getUserId(), entity.getDeviceId()); + Context.getPermissionsManager().checkDeviceManagerOrAdmin(getUserId(), entity.getDeviceId()); Context.getDeviceManager().resetTotalDistance(entity); LogAction.resetTotalDistance(getUserId(), entity.getDeviceId()); return Response.noContent().build(); |