feat: assignment url

This commit is contained in:
Jannat Patel
2023-08-30 13:01:45 +05:30
parent 018c26b885
commit 4a76f42e35
5 changed files with 72 additions and 16 deletions

View File

@@ -23,7 +23,15 @@ def get_context(context):
context.submission = frappe.db.get_value(
"LMS Assignment Submission",
submission,
["name", "assignment_attachment", "comments", "status", "member", "member_name"],
[
"name",
"assignment_attachment",
"answer",
"comments",
"status",
"member",
"member_name",
],
as_dict=True,
)
if not context.is_moderator and frappe.session.user != context.submission.member: