[permission] [minor] moved 403 to handler.py
This commit is contained in:
parent
af42359692
commit
4d7928a836
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue