fix(accounts): add permission checks on execute_repost_payment_ledger (backport #58980) (#58981)

Co-authored-by: Diptanil Saha <diptanil@frappe.io>
This commit is contained in:
mergify[bot]
2026-09-11 09:38:50 +05:30
committed by GitHub
parent 563615c77e
commit 85a152946e

View File

@@ -123,6 +123,8 @@ class RepostPaymentLedger(Document):
def execute_repost_payment_ledger(docname): def execute_repost_payment_ledger(docname):
"""Repost Payment Ledger Entries by background job.""" """Repost Payment Ledger Entries by background job."""
frappe.has_permission("Repost Payment Ledger", ptype="submit", doc=docname, throw=True)
job_name = "payment_ledger_repost_" + docname job_name = "payment_ledger_repost_" + docname
frappe.enqueue( frappe.enqueue(