diff options
author | Anton Tananaev <anton@traccar.org> | 2022-06-03 16:32:02 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2022-06-03 16:32:02 -0700 |
commit | 65b0f9c5398ddcb28018cb1963108534c638b1f4 (patch) | |
tree | afbcc2d2df6ed4b856151ab713bf26ee9d1a8fdc /src/main/java | |
parent | ac065e6d945e66870f39c19578694759cd80f552 (diff) | |
download | trackermap-server-65b0f9c5398ddcb28018cb1963108534c638b1f4.tar.gz trackermap-server-65b0f9c5398ddcb28018cb1963108534c638b1f4.tar.bz2 trackermap-server-65b0f9c5398ddcb28018cb1963108534c638b1f4.zip |
Fix another permission issue
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/org/traccar/storage/DatabaseStorage.java | 5 |
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); |