diff --git a/lms/www/classes/class.html b/lms/www/classes/class.html index 50270274..29ce41d4 100644 --- a/lms/www/classes/class.html +++ b/lms/www/classes/class.html @@ -143,7 +143,8 @@ {% for student in class_students %} {% set last_active = frappe.db.get_value("User", student.student, "last_active") %} - {% set allow_progress = is_moderator or student.student == frappe.session.user or frappe.db.get_single_value("LMS Settings", "allow_student_progress") %} + {% set allow_progress = is_moderator or student.student == frappe.session.user or (frappe.db.get_single_value("LMS Settings", "allow_student_progress") and + is_student) %}