aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2022-06-03 16:32:02 -0700
committerAnton Tananaev <anton@traccar.org>2022-06-03 16:32:02 -0700
commit65b0f9c5398ddcb28018cb1963108534c638b1f4 (patch)
treeafbcc2d2df6ed4b856151ab713bf26ee9d1a8fdc /src
parentac065e6d945e66870f39c19578694759cd80f552 (diff)
downloadtrackermap-server-65b0f9c5398ddcb28018cb1963108534c638b1f4.tar.gz
trackermap-server-65b0f9c5398ddcb28018cb1963108534c638b1f4.tar.bz2
trackermap-server-65b0f9c5398ddcb28018cb1963108534c638b1f4.zip
Fix another permission issue
Diffstat (limited to 'src')
-rw-r--r--src/main/java/org/traccar/storage/DatabaseStorage.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/storage/DatabaseStorage.java b/src/main/java/org/traccar/storage/DatabaseStorage.java
index 2b9172153..e4e4f3294 100644
--- a/src/main/java/org/traccar/storage/DatabaseStorage.java
+++ b/src/main/java/org/traccar/storage/DatabaseStorage.java
@@ -324,7 +324,10 @@ public class DatabaseStorage extends Storage {
result.append(" UNION ");
result.append("SELECT DISTINCT ");
- result.append(groupStorageName).append('.').append(outputKey);
+ if (!expandDevices) {
+ result.append(groupStorageName).append('.');
+ }
+ result.append(outputKey);
result.append(" FROM ");
result.append(groupStorageName);