Minor fix in patches (#11268)
This commit is contained in:
parent
12e817bad6
commit
c44290955e
@ -12,6 +12,7 @@ def execute():
|
|||||||
|
|
||||||
domains = frappe.db.sql_list("select domain from tabCompany")
|
domains = frappe.db.sql_list("select domain from tabCompany")
|
||||||
if "Education" not in domains:
|
if "Education" not in domains:
|
||||||
role = frappe.get_doc("Role", "Instructor")
|
if frappe.db.exists("Role", "Instructor"):
|
||||||
role.disabled = 1
|
role = frappe.get_doc("Role", "Instructor")
|
||||||
role.save(ignore_permissions=True)
|
role.disabled = 1
|
||||||
|
role.save(ignore_permissions=True)
|
Loading…
x
Reference in New Issue
Block a user