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

This commit is contained in:
Diptanil Saha
2026-09-10 19:03:38 +05:30
committed by GitHub
parent e6b8e90ad9
commit 86821ac6ee

View File

@@ -123,6 +123,8 @@ class RepostPaymentLedger(Document):
def execute_repost_payment_ledger(docname: str):
"""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
frappe.enqueue(