diff options
author | Abyss777 <abyss@fox5.ru> | 2017-02-27 11:22:56 +0500 |
---|---|---|
committer | Abyss777 <abyss@fox5.ru> | 2017-02-27 11:22:56 +0500 |
commit | bb0a5ccd64ab8fa7c33ad9a6c37c695f2c3eef7e (patch) | |
tree | d884f4065c7a9ef4291ad590a117ee7b22cc679c /src/org/traccar/model | |
parent | 61a1bae779f876bcdb9b83a8f950e678a170afb0 (diff) | |
download | trackermap-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/model')
-rw-r--r-- | src/org/traccar/model/Server.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/org/traccar/model/Server.java b/src/org/traccar/model/Server.java index 5cf26f7f2..b588a4de0 100644 --- a/src/org/traccar/model/Server.java +++ b/src/org/traccar/model/Server.java @@ -46,6 +46,16 @@ public class Server extends Extensible { this.readonly = readonly; } + private boolean deviceReadonly; + + public boolean getDeviceReadonly() { + return deviceReadonly; + } + + public void setDeviceReadonly(boolean deviceReadonly) { + this.deviceReadonly = deviceReadonly; + } + private String map; public String getMap() { |