feat: access for course creation

This commit is contained in:
Jannat Patel
2022-08-22 12:58:54 +05:30
parent 5aba690318
commit 668130d443
17 changed files with 123 additions and 92 deletions

View File

@@ -0,0 +1,10 @@
import frappe
def execute():
if not frappe.db.exists("Role", "Course Instructor"):
role = frappe.get_doc({
"doctype": "Role",
"role_name": "Course Instructor",
"home_page": "/dashboard",
})
role.save(ignore_permissions=True)