diff options
author | Anton Tananaev <anton@traccar.org> | 2023-01-22 09:58:15 -0800 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2023-01-22 09:58:15 -0800 |
commit | 0ec73ae585b66a455f7e43ef6d60f41cde6cf960 (patch) | |
tree | d536af5d2a3d098c918b08ec70919696c1e6c386 /src/main | |
parent | f655b59d3f919bebc714c97ef871a0d85cb3d9ac (diff) | |
download | trackermap-server-0ec73ae585b66a455f7e43ef6d60f41cde6cf960.tar.gz trackermap-server-0ec73ae585b66a455f7e43ef6d60f41cde6cf960.tar.bz2 trackermap-server-0ec73ae585b66a455f7e43ef6d60f41cde6cf960.zip |
Commands for readonly users
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/org/traccar/api/resource/CommandResource.java | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/api/resource/CommandResource.java b/src/main/java/org/traccar/api/resource/CommandResource.java index 6ef6ee9c5..3460cf6e0 100644 --- a/src/main/java/org/traccar/api/resource/CommandResource.java +++ b/src/main/java/org/traccar/api/resource/CommandResource.java @@ -105,7 +105,6 @@ public class CommandResource extends ExtendedObjectResource<Command> { @POST @Path("send") public Response send(Command entity) throws Exception { - permissionsService.checkRestriction(getUserId(), UserRestrictions::getReadonly); if (entity.getId() > 0) { permissionsService.checkPermission(baseClass, getUserId(), entity.getId()); long deviceId = entity.getDeviceId(); |