feat: students view for classes

This commit is contained in:
Jannat Patel
2022-11-25 17:46:46 +05:30
parent 66ddea2031
commit f566211d82
16 changed files with 182 additions and 141 deletions
+3 -3
View File
@@ -20,7 +20,7 @@
"list_columns": [],
"login_required": 1,
"max_attachment_size": 0,
"modified": "2022-11-23 14:57:47.700695",
"modified": "2022-11-25 17:05:30.851109",
"modified_by": "Administrator",
"module": "LMS",
"name": "evaluation",
@@ -29,7 +29,7 @@
"published": 1,
"route": "evaluation",
"show_attachments": 0,
"show_list": 1,
"show_list": 0,
"show_sidebar": 0,
"title": "Evaluation",
"web_form_fields": [
@@ -146,4 +146,4 @@
"show_in_filter": 0
}
]
}
}
+1 -8
View File
@@ -1,13 +1,6 @@
import frappe
from frappe import _
from lms.lms.utils import has_course_moderator_role
def get_context(context):
if not has_course_moderator_role():
message = "Only Moderators have access to this page."
if frappe.session.user == "Guest":
message = "Please login to access this page."
raise frappe.PermissionError(_(message))
pass