use of org.olat.course.assessment.ui.mode.AssessmentModeListController in project OpenOLAT by OpenOLAT.
the class CourseRuntimeController method doAssessmentMode.
private void doAssessmentMode(UserRequest ureq) {
if (delayedClose == Delayed.assessmentMode || requestForClose(ureq)) {
if (reSecurity.isEntryAdmin() || hasCourseRight(CourseRights.RIGHT_COURSEEDITOR) || hasCourseRight(CourseRights.RIGHT_ASSESSMENT_MODE)) {
removeCustomCSS();
AssessmentModeListController ctrl = new AssessmentModeListController(ureq, getWindowControl(), toolbarPanel, getRepositoryEntry());
assessmentModeCtrl = pushController(ureq, translate("command.assessment.mode"), ctrl);
setActiveTool(assessmentModeLink);
currentToolCtr = assessmentModeCtrl;
}
} else {
delayedClose = Delayed.assessmentMode;
}
}
use of org.olat.course.assessment.ui.mode.AssessmentModeListController in project openolat by klemens.
the class CourseRuntimeController method doAssessmentMode.
private void doAssessmentMode(UserRequest ureq) {
if (delayedClose == Delayed.assessmentMode || requestForClose(ureq)) {
if (reSecurity.isEntryAdmin() || hasCourseRight(CourseRights.RIGHT_COURSEEDITOR) || hasCourseRight(CourseRights.RIGHT_ASSESSMENT_MODE)) {
removeCustomCSS();
AssessmentModeListController ctrl = new AssessmentModeListController(ureq, getWindowControl(), toolbarPanel, getRepositoryEntry());
assessmentModeCtrl = pushController(ureq, translate("command.assessment.mode"), ctrl);
setActiveTool(assessmentModeLink);
currentToolCtr = assessmentModeCtrl;
}
} else {
delayedClose = Delayed.assessmentMode;
}
}
Aggregations