Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not permitted error #5

Open
elmagory1 opened this issue Dec 12, 2022 · 0 comments
Open

Not permitted error #5

elmagory1 opened this issue Dec 12, 2022 · 0 comments

Comments

@elmagory1
Copy link

When adding new-hotel-check-in and adding a room this error appears {Not permitted} with user has full permission
concol
jquery.min.js:4 POST http://mydomain.com/api/method/run_doc_method 403 (FORBIDDEN)
send @ jquery.min.js:4
ajax @ jquery.min.js:4
frappe.request.call @ desk.min.js?ver=1670833628.0:1
frappe.call @ desk.min.js?ver=1670833628.0:1
call @ form.min.js?ver=1670833628.0:1
room_no @ hotel_check_in__js:71
r @ form.min.js?ver=1670833628.0:1
a @ form.min.js?ver=1670833628.0:1
(anonymous) @ form.min.js?ver=1670833628.0:1
Promise.then (async)
(anonymous) @ desk.min.js?ver=1670833628.0:1
frappe.run_serially @ desk.min.js?ver=1670833628.0:1
trigger @ form.min.js?ver=1670833628.0:1
(anonymous) @ form.min.js?ver=1670833628.0:1
(anonymous) @ desk.min.js?ver=1670833628.0:1
Promise.then (async)
(anonymous) @ desk.min.js?ver=1670833628.0:1
frappe.run_serially @ desk.min.js?ver=1670833628.0:1
trigger @ desk.min.js?ver=1670833628.0:1
(anonymous) @ desk.min.js?ver=1670833628.0:1
Promise.then (async)
(anonymous) @ desk.min.js?ver=1670833628.0:1
frappe.run_serially @ desk.min.js?ver=1670833628.0:1
set_value @ desk.min.js?ver=1670833628.0:1
set_model_value @ control.min.js?ver=1670833628.0:1
(anonymous) @ control.min.js?ver=1670833628.0:1
Promise.then (async)
(anonymous) @ desk.min.js?ver=1670833628.0:1
frappe.run_serially @ desk.min.js?ver=1670833628.0:1
i @ control.min.js?ver=1670833628.0:1
(anonymous) @ control.min.js?ver=1670833628.0:1
Promise.then (async)
validate_and_set_in_model @ control.min.js?ver=1670833628.0:1
parse_validate_and_set_in_model @ control.min.js?ver=1670833628.0:1
(anonymous) @ desk.min.js?ver=1670833628.0:1
(anonymous) @ control.min.js?ver=1670833628.0:1
dispatch @ jquery.min.js:3
r.handle @ jquery.min.js:3
o.fire @ control.min.js?ver=1670833628.0:1
select @ control.min.js?ver=1670833628.0:1
click @ control.min.js?ver=1670833628.0:1
desk.min.js?ver=1670833628.0:1 Traceback (most recent call last):
File "apps/frappe/frappe/app.py", line 69, 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 38, in handle
data = execute_cmd(cmd)
File "apps/frappe/frappe/handler.py", line 76, in execute_cmd
return frappe.call(method, **frappe.form_dict)
File "apps/frappe/frappe/init.py", line 1457, in call
return fn(*args, **newargs)
File "apps/frappe/frappe/handler.py", line 269, in run_doc_method
is_whitelisted(fn)
File "apps/frappe/frappe/init.py", line 750, in is_whitelisted
throw(_("Not permitted"), PermissionError)
File "apps/frappe/frappe/init.py", line 504, in throw
msgprint(
File "apps/frappe/frappe/init.py", line 479, in msgprint
_raise_exception()
File "apps/frappe/frappe/init.py", line 434, in _raise_exception
raise raise_exception(msg)
frappe.exceptions.PermissionError: Not permitted

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant