From 4d7928a83699a58daebf4cb58c531d7f6bbb9b2f Mon Sep 17 00:00:00 2001 From: Rushabh Mehta Date: Tue, 16 Jul 2013 15:38:31 +0530 Subject: [PATCH] [permission] [minor] moved 403 to handler.py --- webnotes/widgets/moduleview.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webnotes/widgets/moduleview.py b/webnotes/widgets/moduleview.py index 5065272bd3..a98f4b35c3 100644 --- a/webnotes/widgets/moduleview.py +++ b/webnotes/widgets/moduleview.py @@ -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