fix: resolved conflicts in permissions.py
This commit is contained in:
parent
fbac6fbfb4
commit
d97c7e7caf
1 changed files with 1 additions and 11 deletions
|
|
@ -7,11 +7,7 @@ import frappe.share
|
|||
from frappe import _, msgprint
|
||||
from frappe.utils import cint
|
||||
from frappe.query_builder import DocType
|
||||
<<<<<<< HEAD
|
||||
|
||||
=======
|
||||
import frappe.share
|
||||
>>>>>>> 6612232bab (fix: setting permissions to any role of some doctypes is not working)
|
||||
rights = ("select", "read", "write", "create", "delete", "submit", "cancel", "amend",
|
||||
"print", "email", "report", "import", "export", "set_user_permissions", "share")
|
||||
|
||||
|
|
@ -470,12 +466,6 @@ def update_permission_property(doctype, role, permlevel, ptype, value=None, vali
|
|||
table = DocType("Custom DocPerm")
|
||||
frappe.qb.update(table).set(ptype, value).where(table.name == name).run()
|
||||
|
||||
<<<<<<< HEAD
|
||||
=======
|
||||
table = DocType("Custom DocPerm")
|
||||
frappe.qb.update(table).set(ptype, value).where(table.name == name).run()
|
||||
|
||||
>>>>>>> 6612232bab (fix: setting permissions to any role of some doctypes is not working)
|
||||
if validate:
|
||||
validate_permissions_for_doctype(doctype)
|
||||
|
||||
|
|
@ -604,4 +594,4 @@ def is_parent_valid(child_doctype, parent_doctype):
|
|||
from frappe.core.utils import find
|
||||
parent_meta = frappe.get_meta(parent_doctype)
|
||||
child_table_field_exists = find(parent_meta.get_table_fields(), lambda d: d.options == child_doctype)
|
||||
return not parent_meta.istable and child_table_field_exists
|
||||
return not parent_meta.istable and child_table_field_exists
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue