diff --git a/lms/www/batch/learn.html b/lms/www/batch/learn.html index 6c5eb03c..f71d1580 100644 --- a/lms/www/batch/learn.html +++ b/lms/www/batch/learn.html @@ -33,7 +33,7 @@
{{ LessonContent(lesson) }} - {% if not lesson.edit_mode and course.staus == "Approved" and not course.upcoming %} + {% if not lesson.edit_mode and course.status == "Approved" and not course.upcoming %} {{ Discussions() }} {% endif %}
diff --git a/lms/www/utils.py b/lms/www/utils.py index 81228e4e..167c6c01 100644 --- a/lms/www/utils.py +++ b/lms/www/utils.py @@ -9,7 +9,7 @@ def get_common_context(context): batch_name = None course = frappe.db.get_value("LMS Course", - frappe.form_dict["course"], ["name", "title", "video_link", "enable_certification"], as_dict=True) + frappe.form_dict["course"], ["name", "title", "video_link", "enable_certification", "status"], as_dict=True) if not course: context.template = "www/404.html" return