diff options
author | Kuersat Akmaz | 2020-07-15 16:03:43 +0200 |
---|---|---|
committer | Kuersat Akmaz | 2020-07-15 16:03:43 +0200 |
commit | 57b596caf89c30f2f49677b84c319dffd11bcc15 (patch) | |
tree | ecd7a1bd2879b8dc85f77f454dafdd55d68e3273 /dozentenmodul/src/main | |
parent | [client] Session.isStudent definition and all ocurences Removed (diff) | |
download | tutor-module-57b596caf89c30f2f49677b84c319dffd11bcc15.tar.gz tutor-module-57b596caf89c30f2f49677b84c319dffd11bcc15.tar.xz tutor-module-57b596caf89c30f2f49677b84c319dffd11bcc15.zip |
[client] Students are directly forwarded to Lecturelist
As Discussed in the meeting on 07.07.2020
Issue : 3727
Diffstat (limited to 'dozentenmodul/src/main')
-rw-r--r-- | dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/MainMenuWindow.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/MainMenuWindow.java b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/MainMenuWindow.java index ef805799..32a9cd9e 100644 --- a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/MainMenuWindow.java +++ b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/MainMenuWindow.java @@ -27,6 +27,7 @@ public class MainMenuWindow extends MainMenuWindowLayout { MainWindow.showPage(LectureListWindow.class); } }); + } @Override @@ -36,6 +37,12 @@ public class MainMenuWindow extends MainMenuWindowLayout { @Override public void requestShow() { + // here we need to check if the user is a student + // if so directly forward to lecturelist. + if(!Session.canListImages()) { + MainWindow.showPage(LectureListWindow.class); + } + btnShowVirtualMachines.setEnabled(Session.canListImages()); } } |