10 lines
248 B
Python
10 lines
248 B
Python
import frappe
|
|
|
|
|
|
def execute():
|
|
value = frappe.db.get_single_value("LMS Settings", "portal_course_creation")
|
|
if value == "Course Instructor Role":
|
|
frappe.db.set_value(
|
|
"LMS Settings", None, "portal_course_creation", "Course Creator Role"
|
|
)
|