summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephan Schwär2021-04-20 13:41:00 +0200
committerStephan Schwär2021-04-20 13:41:00 +0200
commit64f0e1c7f23e6b8f3e67c941137499e5a562a9e1 (patch)
tree6c8754270d60d96973cdfd6cc3d5ca07b265f411
parent[server] Replace bogus info where possible (diff)
downloadtutor-module-64f0e1c7f23e6b8f3e67c941137499e5a562a9e1.tar.gz
tutor-module-64f0e1c7f23e6b8f3e67c941137499e5a562a9e1.tar.xz
tutor-module-64f0e1c7f23e6b8f3e67c941137499e5a562a9e1.zip
[server] Only non restricted versions for student
Issue: #3846
-rw-r--r--dozentenmodulserver/src/main/java/org/openslx/bwlp/sat/database/mappers/DbImage.java2
1 files changed, 1 insertions, 1 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 d5ebd37c..db56f78f 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
@@ -274,7 +274,7 @@ public class DbImage {
stmt = connection
.prepareStatement("SELECT" + " imageversionid, createtime, expiretime, filesize, null,"
+ " isrestricted, isvalid, isprocessed" + " FROM imageversion"
- + " WHERE imagebaseid = :imagebaseid");
+ + " WHERE imagebaseid = :imagebaseid AND isrestricted = 0");
} else {
stmt = connection.prepareStatement(
"SELECT" + " imageversionid, createtime, expiretime, filesize, uploaderid,"