From 3bdf6df70d5f5f35ac631f036c4bdc1fe0fb13d9 Mon Sep 17 00:00:00 2001 From: Jannat Patel Date: Mon, 7 Mar 2022 18:28:12 +0530 Subject: [PATCH] fix: allow locked lessons o instructors through outline --- school/lms/widgets/CourseOutline.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/school/lms/widgets/CourseOutline.html b/school/lms/widgets/CourseOutline.html index e4144d62..d80b7f9a 100644 --- a/school/lms/widgets/CourseOutline.html +++ b/school/lms/widgets/CourseOutline.html @@ -19,7 +19,7 @@ {% endif %} - {% set is_instructor = frappe.session.user == course.instructor %} + {% set is_instructor = is_instructor(course.name) %}
{% for lesson in get_lessons(course.name, chapter) %} @@ -41,7 +41,7 @@ {% elif is_instructor and not lesson.include_in_preview %}
{{ lesson.title }}