fix: patch fixes (#16524)
This commit is contained in:
parent
5fdcd91847
commit
429996752d
@ -3,8 +3,10 @@ import frappe
|
||||
|
||||
def execute():
|
||||
if 'Education' in frappe.get_active_domains() and not frappe.db.exists("Role", "Guardian"):
|
||||
frappe.new_doc({
|
||||
"doctype": "Role",
|
||||
doc = frappe.new_doc("Role")
|
||||
doc.update({
|
||||
"role_name": "Guardian",
|
||||
"desk_access": 0
|
||||
}).insert(ignore_permissions=True)
|
||||
})
|
||||
|
||||
doc.insert(ignore_permissions=True)
|
||||
|
Loading…
x
Reference in New Issue
Block a user