diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2016-10-08 16:59:17 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2016-10-08 16:59:17 +1300 |
commit | 3c5293cd078149a81cfdd21878e7731d56b2830c (patch) | |
tree | 81ba8595463cc23c30dfdd40c5d45a360fd27094 | |
parent | 62e5c4a5f2989a869daace462d575c7bd04e5bc5 (diff) | |
download | trackermap-server-3c5293cd078149a81cfdd21878e7731d56b2830c.tar.gz trackermap-server-3c5293cd078149a81cfdd21878e7731d56b2830c.tar.bz2 trackermap-server-3c5293cd078149a81cfdd21878e7731d56b2830c.zip |
Check server readonly flag
-rw-r--r-- | src/org/traccar/database/PermissionsManager.java | 2 |
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"); } } |