Hi All,
I did a ‘bench update’ for my ERPNext instance and I am getting the message ‘No permission for DocType’ for some doc types. For example, I tried creating a Payment entry and when Party Type Customer or Supplier is selected I am getting the message No permission for DocType
.
I am on ERPNext: v13.14.0 (version-13) and Frappe Framework: v13.14.0 (version-13)
This user had the permissions before and no changes to the user permissions. All I did was a bench update
.
Following is the info I am seeing in the browser.
Failed to load resource: the server responded with a status of 403 (FORBIDDEN) request.js:418 Traceback (most recent call last): File "/home/frappe/frappe-bench/apps/frappe/frappe/app.py", line 68, in application response = frappe.api.handle() File "/home/frappe/frappe-bench/apps/frappe/frappe/api.py", line 55, in handle return frappe.handler.handle() File "/home/frappe/frappe-bench/apps/frappe/frappe/handler.py", line 31, in handle data = execute_cmd(cmd) File "/home/frappe/frappe-bench/apps/frappe/frappe/handler.py", line 67, in execute_cmd return frappe.call(method, **frappe.form_dict) File "/home/frappe/frappe-bench/apps/frappe/frappe/__init__.py", line 1207, in call return fn(*args, **newargs) File "/home/frappe/frappe-bench/apps/frappe/frappe/client.py", line 86, in get_value frappe.throw(_("No permission for {0}").format(doctype), frappe.PermissionError) File "/home/frappe/frappe-bench/apps/frappe/frappe/__init__.py", line 438, in throw msgprint(msg, raise_exception=exc, title=title, indicator='red', is_minimizable=is_minimizable, wide=wide, as_list=as_list) File "/home/frappe/frappe-bench/apps/frappe/frappe/__init__.py", line 417, in msgprint _raise_exception() File "/home/frappe/frappe-bench/apps/frappe/frappe/__init__.py", line 371, in _raise_exception raise raise_exception(msg) frappe.exceptions.PermissionError: No permission for DocType
The HTTP 403 Forbidden message above is for following endpoint.
/api/method/frappe.client.get_value?doctype=DocType&fieldname=%5B"name"%5D&filters=Customer&_=1636618582590
As a solution I tried bench reset-perms
but the issue still remains.
Please help.