summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephan Schwär2021-04-20 16:08:24 +0200
committerStephan Schwär2021-04-20 16:08:24 +0200
commit014f7eba231f2cb7163127de7d1450c44b00e281 (patch)
treee6023c046ec2568918db8e5bfdf816b9e3e148f0
parent[server] Only non restricted versions for student (diff)
downloadtutor-module-bugfix/student-image-download.tar.gz
tutor-module-bugfix/student-image-download.tar.xz
tutor-module-bugfix/student-image-download.zip
[server] Remove redundant null in sql querybugfix/student-image-download
-rw-r--r--dozentenmodulserver/src/main/java/org/openslx/bwlp/sat/database/mappers/DbImage.java7
1 files changed, 3 insertions, 4 deletions
diff --git a/dozentenmodulserver/src/main/java/org/openslx/bwlp/sat/database/mappers/DbImage.java b/dozentenmodulserver/src/main/java/org/openslx/bwlp/sat/database/mappers/DbImage.java
index db56f78f..ed6cc656 100644
--- a/dozentenmodulserver/src/main/java/org/openslx/bwlp/sat/database/mappers/DbImage.java
+++ b/dozentenmodulserver/src/main/java/org/openslx/bwlp/sat/database/mappers/DbImage.java
@@ -271,10 +271,9 @@ public class DbImage {
List<ImageVersionDetails> versionList = new ArrayList<>();
MysqlStatement stmt = null;
if (user.role == Role.STUDENT) {
- stmt = connection
- .prepareStatement("SELECT" + " imageversionid, createtime, expiretime, filesize, null,"
- + " isrestricted, isvalid, isprocessed" + " FROM imageversion"
- + " WHERE imagebaseid = :imagebaseid AND isrestricted = 0");
+ stmt = connection.prepareStatement("SELECT" + " imageversionid, createtime, expiretime, filesize,"
+ + " isrestricted, isvalid, isprocessed" + " FROM imageversion"
+ + " WHERE imagebaseid = :imagebaseid AND isrestricted = 0");
} else {
stmt = connection.prepareStatement(
"SELECT" + " imageversionid, createtime, expiretime, filesize, uploaderid,"