aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/api/resource
diff options
context:
space:
mode:
authorAbyss777 <abyss@fox5.ru>2017-02-27 11:22:56 +0500
committerAbyss777 <abyss@fox5.ru>2017-02-27 11:22:56 +0500
commitbb0a5ccd64ab8fa7c33ad9a6c37c695f2c3eef7e (patch)
treed884f4065c7a9ef4291ad590a117ee7b22cc679c /src/org/traccar/api/resource
parent61a1bae779f876bcdb9b83a8f950e678a170afb0 (diff)
downloadtrackermap-server-bb0a5ccd64ab8fa7c33ad9a6c37c695f2c3eef7e.tar.gz
trackermap-server-bb0a5ccd64ab8fa7c33ad9a6c37c695f2c3eef7e.tar.bz2
trackermap-server-bb0a5ccd64ab8fa7c33ad9a6c37c695f2c3eef7e.zip
- Add server-wide "device readonly" flag
- Allow "device readonly" users send commands
Diffstat (limited to 'src/org/traccar/api/resource')
-rw-r--r--src/org/traccar/api/resource/CommandResource.java1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/org/traccar/api/resource/CommandResource.java b/src/org/traccar/api/resource/CommandResource.java
index e13ae9de8..41b263bf9 100644
--- a/src/org/traccar/api/resource/CommandResource.java
+++ b/src/org/traccar/api/resource/CommandResource.java
@@ -34,7 +34,6 @@ public class CommandResource extends BaseResource {
@POST
public Response add(Command entity) {
Context.getPermissionsManager().checkReadonly(getUserId());
- Context.getPermissionsManager().checkDeviceReadonly(getUserId());
Context.getPermissionsManager().checkDevice(getUserId(), entity.getDeviceId());
Context.getConnectionManager().getActiveDevice(entity.getDeviceId()).sendCommand(entity);
return Response.ok(entity).build();