diff options
Diffstat (limited to 'src/org/traccar')
-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"); } } |