summaryrefslogtreecommitdiffstats
path: root/dozentenmodul/src/main/java
diff options
context:
space:
mode:
Diffstat (limited to 'dozentenmodul/src/main/java')
-rw-r--r--dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/LectureListWindow.java20
1 files changed, 20 insertions, 0 deletions
diff --git a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/LectureListWindow.java b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/LectureListWindow.java
index 31ff7702..6bed9136 100644
--- a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/LectureListWindow.java
+++ b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/LectureListWindow.java
@@ -472,6 +472,26 @@ public class LectureListWindow extends LectureListWindowLayout {
btnNewLecture.setEnabled(Session.canListImages());
updateAvailableOptions(null);
refreshList(false);
+
+ if (Session.isStudent())
+ {
+ deactiveUnnecessaryButtonsForStudents();
+ }
+ }
+
+ /**
+ * This funtion disables all unnecessary buttons
+ * when Student is logged in.
+ */
+ public void deactiveUnnecessaryButtonsForStudents()
+ {
+ btnDeleteLecture.setVisible(false);
+ btnEditLecture.setVisible(false);
+ btnNewLecture.setVisible(false);
+
+ btnDeleteLecture.setEnabled(false);
+ btnEditLecture.setEnabled(false);
+ btnNewLecture.setEnabled(false);
}
public void filterByImageBaseId(final String imageBaseId) {