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:
parent
25e214e7f5
commit
a4614da805
1 changed files with 1 additions and 1 deletions
|
|
@ -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,
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue