Error instead of Permission denied

HI all,

I have created a user with minimal module access and roles.
And when I login as that user and searched for a doctype that is not permitted to, i got the following error message! How to remove this error?

Traceback (most recent call last):
  File "/home/amalendu/frappe-bench/apps/frappe/frappe/app.py", line 55, in application
    response = frappe.handler.handle()
  File "/home/amalendu/frappe-bench/apps/frappe/frappe/handler.py", line 19, in handle
    execute_cmd(cmd)
  File "/home/amalendu/frappe-bench/apps/frappe/frappe/handler.py", line 36, in execute_cmd
    ret = frappe.call(method, **frappe.form_dict)
  File "/home/amalendu/frappe-bench/apps/frappe/frappe/__init__.py", line 881, in call
    return fn(*args, **newargs)
TypeError: get() takes exactly 1 argument (0 given)

Please check if you are on the latest version. try ‘bench update’

1 Like

ok @neilLasrado will check