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/", line 55, in application
    response = frappe.handler.handle()
  File "/home/amalendu/frappe-bench/apps/frappe/frappe/", line 19, in handle
  File "/home/amalendu/frappe-bench/apps/frappe/frappe/", line 36, in execute_cmd
    ret =, **frappe.form_dict)
  File "/home/amalendu/frappe-bench/apps/frappe/frappe/", 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