From 3c5293cd078149a81cfdd21878e7731d56b2830c Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sat, 8 Oct 2016 16:59:17 +1300 Subject: Check server readonly flag --- src/org/traccar/database/PermissionsManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/org') 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"); } } -- cgit v1.2.3