fix: batch access conditions

This commit is contained in:
Jannat Patel
2026-01-30 13:00:49 +05:30
parent 10a9a5230e
commit 4fd3e2549a

View File

@@ -1195,8 +1195,8 @@ def get_batch_details(batch):
)
if can_create_batches():
batch_details.students = batch_students
else:
batch_details.students = []
elif is_student_enrolled:
batch_details.students = [frappe.session.user]
if batch_details.paid_batch and batch_details.start_date >= getdate():
batch_details.amount, batch_details.currency = check_multicurrency(