diff options
author | Simon Rettberg | 2021-04-21 15:55:29 +0200 |
---|---|---|
committer | Simon Rettberg | 2021-04-21 15:55:29 +0200 |
commit | 283097468556ee9f501ada2e80fd815307e89d41 (patch) | |
tree | 0dc884c633ab155b9faffabfa55b1cf7264c3be2 /dozentenmodulserver/src/main/java/org/openslx/bwlp/sat/RuntimeConfig.java | |
parent | [server] Fix download of images for students (diff) | |
download | tutor-module-283097468556ee9f501ada2e80fd815307e89d41.tar.gz tutor-module-283097468556ee9f501ada2e80fd815307e89d41.tar.xz tutor-module-283097468556ee9f501ada2e80fd815307e89d41.zip |
[server] Reject student logins if student download is disabled
Diffstat (limited to 'dozentenmodulserver/src/main/java/org/openslx/bwlp/sat/RuntimeConfig.java')
-rw-r--r-- | dozentenmodulserver/src/main/java/org/openslx/bwlp/sat/RuntimeConfig.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/dozentenmodulserver/src/main/java/org/openslx/bwlp/sat/RuntimeConfig.java b/dozentenmodulserver/src/main/java/org/openslx/bwlp/sat/RuntimeConfig.java index 30d2f4a8..ea450717 100644 --- a/dozentenmodulserver/src/main/java/org/openslx/bwlp/sat/RuntimeConfig.java +++ b/dozentenmodulserver/src/main/java/org/openslx/bwlp/sat/RuntimeConfig.java @@ -101,4 +101,8 @@ public class RuntimeConfig { return cache.get().allowLoginByDefault; } + public static boolean allowStudentDownload() { + return cache.get().allowStudentDownload; + } + } |