Traceback (most recent call last):
File “apps/frappe/frappe/app.py”, line 95, in application
response = frappe.api.handle()
File “apps/frappe/frappe/api.py”, line 55, in handle
return frappe.handler.handle()
File “apps/frappe/frappe/handler.py”, line 47, in handle
data = execute_cmd(cmd)
File “apps/frappe/frappe/handler.py”, line 85, in execute_cmd
return frappe.call(method, **frappe.form_dict)
File “apps/frappe/frappe/init.py”, line 1608, in call
return fn(*args, **newargs)
File “apps/frappe/frappe/core/doctype/prepared_report/prepared_report.py”, line 187, in download_attachment
frappe.throw(frappe._(“Cannot Download Report due to insufficient permissions”))
File “apps/frappe/frappe/init.py”, line 538, in throw
msgprint(
File “apps/frappe/frappe/init.py”, line 506, in msgprint
_raise_exception()
File “apps/frappe/frappe/init.py”, line 452, in _raise_exception
raise raise_exception(msg)
frappe.exceptions.ValidationError: Cannot Download Report due to insufficient permissions
Please give read right or ready report user role, then this problem will not occur.
if not pr.has_permission("read"):
```should i change "read" to ready?
Just follow the above line. Please assign read rights to the Role Permission Manager. If the user does not have the role of Prepared Report User, then assign it to them.
Thank You it works!