2019-01-30 06:18:39 +00:00
|
|
|
from __future__ import unicode_literals
|
|
|
|
import frappe
|
|
|
|
|
|
|
|
def execute():
|
|
|
|
if 'Education' in frappe.get_active_domains() and not frappe.db.exists("Role", "Guardian"):
|
2019-01-30 12:15:48 +00:00
|
|
|
doc = frappe.new_doc("Role")
|
|
|
|
doc.update({
|
2019-01-30 06:18:39 +00:00
|
|
|
"role_name": "Guardian",
|
|
|
|
"desk_access": 0
|
2019-01-30 12:15:48 +00:00
|
|
|
})
|
|
|
|
|
|
|
|
doc.insert(ignore_permissions=True)
|