aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2023-01-22 09:58:15 -0800
committerAnton Tananaev <anton@traccar.org>2023-01-22 09:58:15 -0800
commit0ec73ae585b66a455f7e43ef6d60f41cde6cf960 (patch)
treed536af5d2a3d098c918b08ec70919696c1e6c386
parentf655b59d3f919bebc714c97ef871a0d85cb3d9ac (diff)
downloadtrackermap-server-0ec73ae585b66a455f7e43ef6d60f41cde6cf960.tar.gz
trackermap-server-0ec73ae585b66a455f7e43ef6d60f41cde6cf960.tar.bz2
trackermap-server-0ec73ae585b66a455f7e43ef6d60f41cde6cf960.zip
Commands for readonly users
-rw-r--r--src/main/java/org/traccar/api/resource/CommandResource.java1
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();