fix!: dont delete custom permissions when doctype is deleted
This commit is contained in:
parent
568702967e
commit
3c617e3b06
1 changed files with 0 additions and 2 deletions
|
|
@ -89,8 +89,6 @@ def delete_doc(
|
|||
|
||||
update_flags(doc, flags, ignore_permissions)
|
||||
check_permission_and_not_submitted(doc)
|
||||
|
||||
frappe.db.delete("Custom DocPerm", {"parent": name})
|
||||
frappe.db.delete("__global_search", {"doctype": name})
|
||||
|
||||
delete_from_table(doctype, name, ignore_doctypes, None)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue