fix(email_digest): added permission check for get_msg_html (backport #58197) (#58199)

Co-authored-by: diptanilsaha <diptanil@frappe.io>
This commit is contained in:
mergify[bot]
2026-08-15 16:47:02 +00:00
committed by GitHub
parent a5f4d3abeb
commit c6211eb075

View File

@@ -901,7 +901,9 @@ def send():
@frappe.whitelist()
def get_digest_msg(name):
return frappe.get_doc("Email Digest", name).get_msg_html()
email_digest = frappe.get_doc("Email Digest", name)
email_digest.check_permission()
return email_digest.get_msg_html()
def get_incomes_expenses_for_period(account, from_date, to_date):