aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2022-05-27 16:46:35 -0700
committerAnton Tananaev <anton@traccar.org>2022-05-27 16:46:35 -0700
commit79b5d08f45e8be4ff7d0072cd91fed39d5afe117 (patch)
tree751deffe224cf5ca5430ecc18d84bcd5852d9f59 /src/main
parent8e8a435cea0ea44dfcb20b45dcbb881b87361676 (diff)
downloadtrackermap-server-79b5d08f45e8be4ff7d0072cd91fed39d5afe117.tar.gz
trackermap-server-79b5d08f45e8be4ff7d0072cd91fed39d5afe117.tar.bz2
trackermap-server-79b5d08f45e8be4ff7d0072cd91fed39d5afe117.zip
Fix null server
Diffstat (limited to 'src/main')
-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");
}
}