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

Co-authored-by: diptanilsaha <diptanil@frappe.io>
This commit is contained in:
mergify[bot]
2026-08-15 16:40:09 +00:00
committed by GitHub
parent 900064e395
commit 32ebd69abc

View File

@@ -910,7 +910,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):