From e142d9cbbec237161553d66fe1ec540c918681a4 Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Wed, 2 Jan 2013 16:46:35 +0530 Subject: [PATCH] in feed show records of doctypes for which user has read permission at level 0 --- home/page/activity/activity.py | 1 + 1 file changed, 1 insertion(+) diff --git a/home/page/activity/activity.py b/home/page/activity/activity.py index cbd28ec6ee..76f2829c17 100644 --- a/home/page/activity/activity.py +++ b/home/page/activity/activity.py @@ -10,6 +10,7 @@ def get_feed(arg=None): from tabFeed t1, tabDocPerm t2 where t1.doc_type = t2.parent and t2.role in ('%s') + and t2.permlevel = 0 and ifnull(t2.`read`,0) = 1 order by t1.modified desc limit %s, %s""" % ("','".join(webnotes.get_roles()),