in feed show records of doctypes for which user has read permission at level 0

This commit is contained in:
Anand Doshi 2013-01-02 16:46:35 +05:30
parent 55bf3a3357
commit e142d9cbbe

View File

@ -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()),