aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2016-10-08 16:59:17 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2016-10-08 16:59:17 +1300
commit3c5293cd078149a81cfdd21878e7731d56b2830c (patch)
tree81ba8595463cc23c30dfdd40c5d45a360fd27094 /src/org/traccar
parent62e5c4a5f2989a869daace462d575c7bd04e5bc5 (diff)
downloadtraccar-server-3c5293cd078149a81cfdd21878e7731d56b2830c.tar.gz
traccar-server-3c5293cd078149a81cfdd21878e7731d56b2830c.tar.bz2
traccar-server-3c5293cd078149a81cfdd21878e7731d56b2830c.zip
Check server readonly flag
Diffstat (limited to 'src/org/traccar')
-rw-r--r--src/org/traccar/database/PermissionsManager.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/database/PermissionsManager.java b/src/org/traccar/database/PermissionsManager.java
index e9aaef8f9..1732bbb11 100644
--- a/src/org/traccar/database/PermissionsManager.java
+++ b/src/org/traccar/database/PermissionsManager.java
@@ -145,7 +145,7 @@ public class PermissionsManager {
}
public void checkReadonly(long userId) throws SecurityException {
- if (isReadonly(userId)) {
+ if (server.getReadonly() || isReadonly(userId)) {
throw new SecurityException("User is readonly");
}
}