fix: batch copy

This commit is contained in:
Jannat Patel
2023-09-20 12:40:04 +05:30
parent 0d99269109
commit 33f4e82399
3 changed files with 8 additions and 5 deletions
+1 -1
View File
@@ -24,7 +24,7 @@ def get_context(context):
def validate_access(doctype, docname, module):
if frappe.session.user == "Guest":
raise frappe.PermissionError(_("You are not allowed to access this page."))
raise frappe.PermissionError(_("Please login to continue with payment."))
if module not in ["course", "batch"]:
raise ValueError(_("Module is incorrect."))