Skip to content
Snippets Groups Projects
Commit 29542960 authored by uhensler's avatar uhensler
Browse files

OO-4300: RS after entering a booked course

parent b597d1f8
No related branches found
No related tags found
No related merge requests found
......@@ -804,7 +804,7 @@ public class CourseRuntimeController extends RepositoryEntryRuntimeController im
toolbarPanel.addTool(learningPathLink);
}
if (learningPathLink != null) {
learningPathLink.setVisible(userCourseEnv.isParticipant());
learningPathLink.setVisible(userCourseEnv != null && userCourseEnv.isParticipant());
}
if (!assessmentLock && !isGuestOnly
......@@ -813,7 +813,7 @@ public class CourseRuntimeController extends RepositoryEntryRuntimeController im
toolbarPanel.addTool(learningPathsLink);
}
if (learningPathsLink != null) {
learningPathsLink.setVisible(userCourseEnv.isCoach() || userCourseEnv.isAdmin());
learningPathsLink.setVisible(userCourseEnv != null && (userCourseEnv.isCoach() || userCourseEnv.isAdmin()));
}
boolean calendarIsEnabled = !assessmentLock && !isGuestOnly && calendarModule.isEnabled()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment