use of org.olat.modules.lecture.ui.LectureRepositoryAdminController in project OpenOLAT by OpenOLAT.
the class CourseRuntimeController method doLecturesAdmin.
private LectureRepositoryAdminController doLecturesAdmin(UserRequest ureq) {
if (delayedClose == Delayed.lecturesAdmin || requestForClose(ureq)) {
if (reSecurity.isEntryAdmin() || hasCourseRight(CourseRights.RIGHT_COURSEEDITOR)) {
removeCustomCSS();
OLATResourceable ores = OresHelper.createOLATResourceableType("LecturesAdmin");
WindowControl swControl = addToHistory(ureq, ores, null);
LectureRepositoryAdminController ctrl = new LectureRepositoryAdminController(ureq, swControl, toolbarPanel, getRepositoryEntry());
listenTo(ctrl);
lecturesAdminCtrl = pushController(ureq, translate("command.options.lectures.admin"), ctrl);
setActiveTool(lecturesAdminLink);
currentToolCtr = lecturesAdminCtrl;
return lecturesAdminCtrl;
} else {
return null;
}
} else {
delayedClose = Delayed.lecturesAdmin;
return null;
}
}
use of org.olat.modules.lecture.ui.LectureRepositoryAdminController in project openolat by klemens.
the class CourseRuntimeController method doLecturesAdmin.
private LectureRepositoryAdminController doLecturesAdmin(UserRequest ureq) {
if (delayedClose == Delayed.lecturesAdmin || requestForClose(ureq)) {
if (reSecurity.isEntryAdmin() || hasCourseRight(CourseRights.RIGHT_COURSEEDITOR)) {
removeCustomCSS();
OLATResourceable ores = OresHelper.createOLATResourceableType("LecturesAdmin");
WindowControl swControl = addToHistory(ureq, ores, null);
LectureRepositoryAdminController ctrl = new LectureRepositoryAdminController(ureq, swControl, toolbarPanel, getRepositoryEntry());
listenTo(ctrl);
lecturesAdminCtrl = pushController(ureq, translate("command.options.lectures.admin"), ctrl);
setActiveTool(lecturesAdminLink);
currentToolCtr = lecturesAdminCtrl;
return lecturesAdminCtrl;
} else {
return null;
}
} else {
delayedClose = Delayed.lecturesAdmin;
return null;
}
}
Aggregations