From c093f81a269e65d556de47563d80deb213336c21 Mon Sep 17 00:00:00 2001
From: uhensler <urs.hensler@frentix.com>
Date: Tue, 7 Jan 2020 09:10:42 +0100
Subject: [PATCH] OO-4315: Show prev/next in toolbar only if conventional
 course

---
 src/main/java/org/olat/course/run/RunMainController.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/main/java/org/olat/course/run/RunMainController.java b/src/main/java/org/olat/course/run/RunMainController.java
index 11eda37470c..98105fc4698 100644
--- a/src/main/java/org/olat/course/run/RunMainController.java
+++ b/src/main/java/org/olat/course/run/RunMainController.java
@@ -78,6 +78,7 @@ import org.olat.course.ICourse;
 import org.olat.course.assessment.AssessmentChangedEvent;
 import org.olat.course.assessment.AssessmentMode;
 import org.olat.course.assessment.AssessmentMode.Status;
+import org.olat.course.condition.ConditionNodeAccessProvider;
 import org.olat.course.config.CourseConfig;
 import org.olat.course.editor.PublishEvent;
 import org.olat.course.groupsandrights.CourseGroupManager;
@@ -293,8 +294,7 @@ public class RunMainController extends MainLayoutBasicController implements Gene
 	}
 	
 	protected void initToolbar() {
-		if(toolbarPanel != null) {
-			// new toolbox 'general'
+		if(toolbarPanel != null && ConditionNodeAccessProvider.TYPE.equals(course.getCourseConfig().getNodeAccessType().getType())) {
 			previousLink = LinkFactory.createToolLink("previouselement","", this, "o_icon_previous_toolbar");
 			previousLink.setTitle(translate("command.previous"));
 			toolbarPanel.addTool(previousLink, Align.rightEdge, false, "o_tool_previous");
-- 
GitLab