From 889c04836d48d113a908d679a7af75894fa5a9f7 Mon Sep 17 00:00:00 2001
From: srosse <none@none>
Date: Sat, 16 Aug 2014 19:10:31 +0200
Subject: [PATCH] OO-1159: a better fix to the issue with the resume as perfect
 solution is not possible without refactoring

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

diff --git a/src/main/java/org/olat/course/run/RunMainController.java b/src/main/java/org/olat/course/run/RunMainController.java
index 925e3a0ba71..125ddb2f29e 100644
--- a/src/main/java/org/olat/course/run/RunMainController.java
+++ b/src/main/java/org/olat/course/run/RunMainController.java
@@ -1132,7 +1132,7 @@ public class RunMainController extends MainLayoutBasicController implements Gene
 		}
 		if (showCourseConfigLink) {
 			ChiefController chief = (ChiefController) Windows.getWindows(ureq).getAttribute("AUTHCHIEFCONTROLLER");
-			if (chief != null && chief.hasStaticSite(RepositorySite.class)) {
+			if (chief == null || chief.hasStaticSite(RepositorySite.class)) {
 				myTool.addLink(TOOLBOX_LINK_COURSECONFIG, translate("command.courseconfig"));
 			}
 		}
-- 
GitLab