diff options
author | Anton Tananaev <anton@traccar.org> | 2024-06-09 07:02:05 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2024-06-09 07:02:05 -0700 |
commit | 2147ecb2d9fe0fb49b3f03dc650bc363e72e3fd2 (patch) | |
tree | a983700dd72bf78be4f9258c76c098670cf2634e /src/main/java/org/traccar/api/resource | |
parent | 03b9b90b50d82dcb41a79b95c26efcbd82a73fea (diff) | |
download | trackermap-server-2147ecb2d9fe0fb49b3f03dc650bc363e72e3fd2.tar.gz trackermap-server-2147ecb2d9fe0fb49b3f03dc650bc363e72e3fd2.tar.bz2 trackermap-server-2147ecb2d9fe0fb49b3f03dc650bc363e72e3fd2.zip |
Allow some readonly updates
Diffstat (limited to 'src/main/java/org/traccar/api/resource')
-rw-r--r-- | src/main/java/org/traccar/api/resource/DeviceResource.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/api/resource/DeviceResource.java b/src/main/java/org/traccar/api/resource/DeviceResource.java index 971c29c60..61d96669e 100644 --- a/src/main/java/org/traccar/api/resource/DeviceResource.java +++ b/src/main/java/org/traccar/api/resource/DeviceResource.java @@ -137,8 +137,8 @@ public class DeviceResource extends BaseObjectResource<Device> { @Path("{id}/accumulators") @PUT public Response updateAccumulators(DeviceAccumulators entity) throws Exception { - permissionsService.checkEdit(getUserId(), Device.class, false); permissionsService.checkPermission(Device.class, getUserId(), entity.getDeviceId()); + permissionsService.checkEdit(getUserId(), Device.class, false, false); Position position = storage.getObject(Position.class, new Request( new Columns.All(), new Condition.LatestPositions(entity.getDeviceId()))); |