diff --git a/community/lms/doctype/lms_sketch/lms_sketch.py b/community/lms/doctype/lms_sketch/lms_sketch.py index 52275a6d..474ccf5d 100644 --- a/community/lms/doctype/lms_sketch/lms_sketch.py +++ b/community/lms/doctype/lms_sketch/lms_sketch.py @@ -77,7 +77,7 @@ def save_sketch(name, title, code): doc.title = title doc.code = code doc.runtime = 'python-canvas' - doc.insert() + doc.insert(ignore_permissions=True) status = "created" else: doc = frappe.get_doc("LMS Sketch", name)