summaryrefslogtreecommitdiffstats
path: root/dozentenmodulserver/src/main/java/org/openslx/bwlp/sat/thrift/SessionManager.java
diff options
context:
space:
mode:
authorSimon Rettberg2015-09-30 16:20:10 +0200
committerSimon Rettberg2015-09-30 16:20:10 +0200
commitb277c41f9c55f7f12f80788f4027ddfd5baa6e4f (patch)
treebedb6ed1aa2c8de3ff41924ba13732e6b3354e6e /dozentenmodulserver/src/main/java/org/openslx/bwlp/sat/thrift/SessionManager.java
parent[server] Fix: Update usage stats for lectures that link to a VM without VMX t... (diff)
downloadtutor-module-b277c41f9c55f7f12f80788f4027ddfd5baa6e4f.tar.gz
tutor-module-b277c41f9c55f7f12f80788f4027ddfd5baa6e4f.tar.xz
tutor-module-b277c41f9c55f7f12f80788f4027ddfd5baa6e4f.zip
[server] Remove two temporary hacks
Diffstat (limited to 'dozentenmodulserver/src/main/java/org/openslx/bwlp/sat/thrift/SessionManager.java')
-rw-r--r--dozentenmodulserver/src/main/java/org/openslx/bwlp/sat/thrift/SessionManager.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/dozentenmodulserver/src/main/java/org/openslx/bwlp/sat/thrift/SessionManager.java b/dozentenmodulserver/src/main/java/org/openslx/bwlp/sat/thrift/SessionManager.java
index ddaa729a..02412f08 100644
--- a/dozentenmodulserver/src/main/java/org/openslx/bwlp/sat/thrift/SessionManager.java
+++ b/dozentenmodulserver/src/main/java/org/openslx/bwlp/sat/thrift/SessionManager.java
@@ -156,9 +156,10 @@ public class SessionManager {
throw new TInvocationException();
}
LOGGER.info("Got user " + ui.userId + " for token " + token);
- // TODO XXX HACK: Remove this once master server supplies role
- if (ui.role == null)
- ui.role = Role.TUTOR;
+ if (ui.role == null) {
+ // Fail-safe: No role supplied, assume student
+ ui.role = Role.STUDENT;
+ }
// Valid reply, check if user is allowed to communicate with this satellite server
AuthorizationError authError = User.canLogin(ui);
if (authError != null) {