From 0817d1064cf026eb3dc379834d2ff09c3b9ba28f Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Wed, 15 Jul 2026 15:05:17 +0530 Subject: [PATCH] fix: permission issue (backport #57112) (backport #57142) (#57184) * fix: permission issue (backport #57112) (#57142) * fix: permission issue (#57112) (cherry picked from commit 1fd2faa68d0b4960d9e2e48ab782be9cc6b1b644) # Conflicts: # erpnext/controllers/stock_controller.py * chore: fix conflicts --------- Co-authored-by: rohitwaghchaure (cherry picked from commit 6b23b007a4e03de7f98609ed33c15f9a09bf244c) # Conflicts: # erpnext/controllers/stock_controller.py * chore: fix conflicts * chore: fix conflicts --------- Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> Co-authored-by: rohitwaghchaure --- erpnext/controllers/stock_controller.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/erpnext/controllers/stock_controller.py b/erpnext/controllers/stock_controller.py index feb064597a0..62384f3a85a 100644 --- a/erpnext/controllers/stock_controller.py +++ b/erpnext/controllers/stock_controller.py @@ -2055,7 +2055,7 @@ class StockController(AccountsController): @frappe.whitelist() -def show_accounting_ledger_preview(company, doctype, docname): +def show_accounting_ledger_preview(company: str, doctype: str, docname: str): filters = frappe._dict(company=company, include_dimensions=1) doc = frappe.get_lazy_doc(doctype, docname) doc.check_permission("read") @@ -2069,7 +2069,7 @@ def show_accounting_ledger_preview(company, doctype, docname): @frappe.whitelist() -def show_stock_ledger_preview(company, doctype, docname): +def show_stock_ledger_preview(company: str, doctype: str, docname: str): filters = frappe._dict(company=company) doc = frappe.get_lazy_doc(doctype, docname) doc.check_permission("read")