fix: email digest original_user issue (#27191)

This commit is contained in:
Jannat Patel 2021-08-31 17:43:30 +05:30 committed by GitHub
parent e958ae9002
commit 48f2e5ac1d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -60,9 +60,6 @@ class EmailDigest(Document):
reference_name = self.name,
unsubscribe_message = _("Unsubscribe from this Email Digest"))
frappe.set_user(original_user)
frappe.set_user_lang(original_user)
def get_msg_html(self):
"""Build email digest content"""
frappe.flags.ignore_account_permission = True