chore: logging user

This commit is contained in:
Jannat Patel
2022-09-05 11:35:21 +05:30
parent 2819e55a61
commit 7ef625c598
2 changed files with 24 additions and 24 deletions

View File

@@ -3,31 +3,31 @@
frappe.ui.form.on('LMS Course', { frappe.ui.form.on('LMS Course', {
onload: function (frm) { onload: function (frm) {
frm.set_query("chapter", "chapters", function () { frm.set_query("chapter", "chapters", function () {
return { return {
filters: { filters: {
"course": frm.doc.name, "course": frm.doc.name,
} }
}; };
}); });
frm.set_query("instructor", function (doc) { frm.set_query("instructor", "instructors", function () {
return { return {
filters: { filters: {
"ignore_user_type": 1, "ignore_user_type": 1,
} }
}; };
}); });
frm.set_query("course", "related_courses", function () { frm.set_query("course", "related_courses", function () {
return { return {
filters: { filters: {
"published": true, "published": true,
} }
}; };
}); });
}
}
}); });

View File

@@ -7,7 +7,7 @@
{% block content %} {% block content %}
{% set portal_course_creation = frappe.db.get_single_value("LMS Settings", "portal_course_creation") %} {% set portal_course_creation = frappe.db.get_single_value("LMS Settings", "portal_course_creation") %}
{% set show_creators_section = portal_course_creation == "Anyone" or has_course_instructor_role() %} {% set show_creators_section = portal_course_creation == "Anyone" or has_course_instructor_role() %}
{{ frappe.session.user }}
<div class="common-page-style dashboard"> <div class="common-page-style dashboard">
<div class="container"> <div class="container">