diff options
author | Stephan Schwär | 2021-04-20 13:41:00 +0200 |
---|---|---|
committer | Stephan Schwär | 2021-04-20 13:41:00 +0200 |
commit | 64f0e1c7f23e6b8f3e67c941137499e5a562a9e1 (patch) | |
tree | 6c8754270d60d96973cdfd6cc3d5ca07b265f411 | |
parent | [server] Replace bogus info where possible (diff) | |
download | tutor-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.java | 2 |
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," |