feat: quiz in classes

This commit is contained in:
Jannat Patel
2023-06-20 20:12:10 +05:30
parent 6f8c161e03
commit da72513f6a
15 changed files with 472 additions and 345 deletions

View File

@@ -5,6 +5,10 @@ from lms.lms.utils import has_course_moderator_role
def get_context(context):
context.no_cache = 1
if frappe.session.user == "Guest":
raise frappe.PermissionError(_("You don't have permission to access this page."))
context.is_moderator = has_course_moderator_role()
submission = frappe.form_dict["submission"]
assignment = frappe.form_dict["assignment"]