request.js:473 Traceback (most recent call last):
File “apps/frappe/frappe/app.py”, line 110, in application
response = frappe.api.handle(request)
File “apps/frappe/frappe/api/init.py”, line 49, in handle
data = endpoint(**arguments)
File “apps/frappe/frappe/api/v1.py”, line 36, in handle_rpc_call
return frappe.handler.handle()
File “apps/frappe/frappe/handler.py”, line 49, 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 1682, in call
return fn(*args, **newargs)
File “apps/frappe/frappe/handler.py”, line 311, in run_doc_method
throw_permission_error()
File “apps/frappe/frappe/handler.py”, line 109, in throw_permission_error
frappe.throw(_(“Not permitted”), frappe.PermissionError)
File “apps/frappe/frappe/init.py”, line 589, in throw
msgprint(
File “apps/frappe/frappe/init.py”, line 561, in msgprint
_raise_exception()
File “apps/frappe/frappe/init.py”, line 512, in _raise_exception
raise exc
frappe.exceptions.PermissionError: Not permitted
Please mention the step where the error is coming from.
While approve the document (using approval document)
Check whether the role assigned to the workflow you created is in the user or not. This type of error occurs only when the user does not have that role.
Role has been assigned that user , that time also this error showing
Not sure, what you are using in workflow and what role you assign. if worked with another user or system manager then it must be role permission issue.
If the workflow is working fine for directly using document , while using the approval(single docutype) it gathers all documents in single page , this time not permitted error showing
I Written the code by backend , only this user got this type of issue
Not possible, otherwise check permission. simple thing, the workflow doesn’t work at on a single doctype.
Have you written any code which update other document on Approve event, in that case user might not have permission to other document which can cause the problem.