[permission] [minor] moved 403 to handler.py

This commit is contained in:
Rushabh Mehta 2013-07-16 15:38:31 +05:30
parent af42359692
commit 4d7928a836

View file

@ -17,7 +17,7 @@ def get_count(doctypes):
count = {}
can_read = webnotes.user.get_can_read()
for d in doctypes:
if doctype in can_read:
if d in can_read:
count[d] = get_doctype_count_from_table(d)
return count