mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-29 18:04:46 +00:00
in feed show records of doctypes for which user has read permission at level 0
This commit is contained in:
@@ -10,6 +10,7 @@ def get_feed(arg=None):
|
|||||||
from tabFeed t1, tabDocPerm t2
|
from tabFeed t1, tabDocPerm t2
|
||||||
where t1.doc_type = t2.parent
|
where t1.doc_type = t2.parent
|
||||||
and t2.role in ('%s')
|
and t2.role in ('%s')
|
||||||
|
and t2.permlevel = 0
|
||||||
and ifnull(t2.`read`,0) = 1
|
and ifnull(t2.`read`,0) = 1
|
||||||
order by t1.modified desc
|
order by t1.modified desc
|
||||||
limit %s, %s""" % ("','".join(webnotes.get_roles()),
|
limit %s, %s""" % ("','".join(webnotes.get_roles()),
|
||||||
|
|||||||
Reference in New Issue
Block a user