mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-02 19:59:12 +00:00
fix: removed unncessary changes
This commit is contained in:
@@ -245,9 +245,11 @@ def _get_employee_from_user(user):
|
||||
|
||||
|
||||
def add_agent_assignment(args):
|
||||
doc = frappe.get_cached_doc(args.get("doctype"), args.get("name"))
|
||||
doctype = args.get("doctype")
|
||||
docname = args.get("name")
|
||||
|
||||
for assign_to in args.get("assign_to"):
|
||||
if not frappe.has_permission(doc=doc, user=assign_to):
|
||||
add_docshare(doc.doctype, doc.name, assign_to, flags={"ignore_share_permission": True})
|
||||
if not frappe.has_permission(doctype=doctype, doc=docname, user=assign_to):
|
||||
add_docshare(doctype, docname, assign_to, flags={"ignore_share_permission": True})
|
||||
|
||||
add_assignment(args)
|
||||
|
||||
Reference in New Issue
Block a user