mirror of
https://github.com/frappe/erpnext.git
synced 2026-09-16 18:24:10 +00:00
fix: throw permission error (#47976)
Co-authored-by: Sagar Vora <16315650+sagarvora@users.noreply.github.com>
This commit is contained in:
@@ -109,7 +109,7 @@ def get_stock_balance(
|
||||
|
||||
from erpnext.stock.stock_ledger import get_previous_sle
|
||||
|
||||
frappe.has_permission("Item", "read")
|
||||
frappe.has_permission("Item", "read", throw=True)
|
||||
|
||||
if posting_date is None:
|
||||
posting_date = nowdate()
|
||||
|
||||
Reference in New Issue
Block a user