aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/org/traccar/api/security/PermissionsService.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/api/security/PermissionsService.java b/src/main/java/org/traccar/api/security/PermissionsService.java
index e7955086a..4d5cd88ab 100644
--- a/src/main/java/org/traccar/api/security/PermissionsService.java
+++ b/src/main/java/org/traccar/api/security/PermissionsService.java
@@ -68,7 +68,7 @@ public class PermissionsService {
public void checkReports(long userId) throws StorageException, SecurityException {
if (!getUser(userId).getAdministrator()
- && (server.getDisableReports() || getUser(userId).getDisableReports())) {
+ && (getServer().getDisableReports() || getUser(userId).getDisableReports())) {
throw new SecurityException("Reports are disabled");
}
}