refactor: modify error message for query report with insufficient permissions (#29884)

* refactor: modify error message of not permitted report

* refactor: show the name of the report whose permission is being checked
This commit is contained in:
Ejaaz Khan 2025-01-24 11:47:58 +05:30 committed by GitHub
parent 25e214e7f5
commit a4614da805
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -39,7 +39,7 @@ def get_report_doc(report_name):
if not doc.is_permitted():
frappe.throw(
_("You don't have access to Report: {0}").format(_(report_name)),
_("You don't have access to Report: {0}").format(_(doc.name)),
frappe.PermissionError,
)