feat: community member for profile and edit profile form

This commit is contained in:
pateljannat
2021-03-12 12:22:12 +05:30
parent b7602d6d2b
commit 25a0dd02ac
14 changed files with 124 additions and 38 deletions

View File

@@ -24,6 +24,7 @@ def get_course(name):
@frappe.whitelist()
def has_enrolled(course):
print(frappe.db)
return frappe.db.get_value("LMS Course Enrollment", {"course": course, "owner": frappe.session.user})
@frappe.whitelist()