From 0ec73ae585b66a455f7e43ef6d60f41cde6cf960 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sun, 22 Jan 2023 09:58:15 -0800 Subject: Commands for readonly users --- src/main/java/org/traccar/api/resource/CommandResource.java | 1 - 1 file changed, 1 deletion(-) (limited to 'src/main/java/org/traccar') 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 { @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(); -- cgit v1.2.3