Not allowed function

Error:

  File "/home/ubuntu/frappe-bench/apps/frappe/frappe/handler.py", line 73, in is_whitelisted
    raise frappe.PermissionError('Not Allowed, {0}'.format(method))
PermissionError: Not Allowed, <function task_validate at 0x7f7ad2e25500>

hooks:
https://github.com/leonardoaugt/task_validate/blob/master/task_validate/hooks.py#L27

js:
https://github.com/leonardoaugt/task_validate/blob/master/task_validate/public/js/timesheet.js

py:
https://github.com/leonardoaugt/task_validate/blob/master/task_validate/task_validate/functions.py

I think it should be @frappe.whitelist(). You are missing @

1 Like

Thanks for help, I had not seen this

1 Like

i am not missing @ still getting this error, what could be the error?

Your traceback would help avoid guesswork!