From e34df2ce95ff3d1a4ad3211a2a37489323d8bfd4 Mon Sep 17 00:00:00 2001 From: Jannat Patel Date: Mon, 28 Apr 2025 10:35:14 +0530 Subject: [PATCH 1/2] fix: don't allow billing page access if batch has started --- lms/lms/api.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lms/lms/api.py b/lms/lms/api.py index 7ffb5e82..33922f9c 100644 --- a/lms/lms/api.py +++ b/lms/lms/api.py @@ -240,6 +240,11 @@ def validate_billing_access(billing_type, name): access = False message = _("Batch is sold out.") + start_date = frappe.get_cached_value("LMS Batch", name, "start_date") + if start_date and date_diff(start_date, now()) < 0: + access = False + message = _("Batch has already started.") + elif access and billing_type == "certificate": purchased_certificate = frappe.db.exists( "LMS Enrollment", From f220438257a8176954af79779aeeb7ad65459c28 Mon Sep 17 00:00:00 2001 From: Jannat Patel Date: Mon, 28 Apr 2025 11:16:04 +0530 Subject: [PATCH 2/2] fix: remove borders for iframe on lesson form --- frontend/src/pages/LessonForm.vue | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/frontend/src/pages/LessonForm.vue b/frontend/src/pages/LessonForm.vue index 1d5a5de7..4f7f30f0 100644 --- a/frontend/src/pages/LessonForm.vue +++ b/frontend/src/pages/LessonForm.vue @@ -662,8 +662,7 @@ usePageMeta(() => { } iframe { - border-top: 3px solid theme('colors.gray.700'); - border-bottom: 3px solid theme('colors.gray.700'); + border: none !important; } .tc-table {