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 1732bbb11..b9707ab7d 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 (server.getReadonly() || isReadonly(userId)) { + if (!isAdmin(userId) && (server.getReadonly() || isReadonly(userId))) { throw new SecurityException("User is readonly"); } } |