Message Not Permitted

Hello,

I updated ERPNext, but now i am getting “Message Not Permitted” when browsing website.
Anyone has idea how to fix the issue?

Thank you.

please follow this thread may help.

I tried following steps, but still getting issue.

  1. bench clear-cache
  2. bench clear-website-cache
  3. bench start
1 Like

are you login in user Administrator ?

No, it’s happening on any browsers without login.

try migration again

how can i do this? Just executing command?
bench migrate

Thank you.

The browser console shows as below:

jquery.min.js:4 POST https://testsite.com/ 403 (FORBIDDEN)

send @ jquery.min.js:4
ajax @ jquery.min.js:4
call @ website.js:63
show_cart_navbar @ shopping_cart.js:183
(anonymous) @ shopping_cart.js:59
(anonymous) @ website.js:262
trigger_ready @ website.js:261
(anonymous) @ website.js:444
dispatch @ jquery.min.js:3
r.handle @ jquery.min.js:3
trigger @ jquery.min.js:4
(anonymous) @ jquery.min.js:4
each @ jquery.min.js:2
each @ jquery.min.js:2
trigger @ jquery.min.js:4
(anonymous) @ website.js:427
i @ jquery.min.js:2
fireWith @ jquery.min.js:2
ready @ jquery.min.js:2
J @ jquery.min.js:2
website.js:161 Traceback (most recent call last):
File “/home/frappe/frappe-bench/apps/frappe/frappe/app.py”, line 61, in application
response = frappe.handler.handle()
File “/home/frappe/frappe-bench/apps/frappe/frappe/handler.py”, line 24, in handle
data = execute_cmd(cmd)
File “/home/frappe/frappe-bench/apps/frappe/frappe/handler.py”, line 61, in execute_cmd
is_whitelisted(method)
File “/home/frappe/frappe-bench/apps/frappe/frappe/handler.py”, line 83, in is_whitelisted
raise frappe.PermissionError(‘Not Allowed, {0}’.format(method))
frappe.exceptions.PermissionError: Not Allowed, <function is_cart_enabled at 0x7f64e0c88c80>

issue fixed after restart supervisor service.
i don’t know why, but anyway it’s fixed the issue.

Thanks.