fix: add perm check to get_values_for_link_and_dynamic_link_fields
This commit is contained in:
parent
56d251527f
commit
8d898a4ebc
1 changed files with 2 additions and 1 deletions
|
|
@ -97,7 +97,8 @@ def get_values_for_link_and_dynamic_link_fields(doc_dict):
|
||||||
|
|
||||||
doctype = field.options if field.fieldtype == "Link" else doc_dict.get(field.options)
|
doctype = field.options if field.fieldtype == "Link" else doc_dict.get(field.options)
|
||||||
|
|
||||||
link_doc = frappe.get_doc(doctype, doc_fieldvalue)
|
link_doc = frappe.get_doc(doctype, doc_fieldvalue, check_permission="read")
|
||||||
|
link_doc.apply_fieldlevel_read_permissions()
|
||||||
doc_dict.update({field.fieldname: link_doc})
|
doc_dict.update({field.fieldname: link_doc})
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue