Index: openacs-4/packages/bookmarks/www/tree-dynamic-postgresql.xql =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/bookmarks/www/tree-dynamic-postgresql.xql,v diff -u -N -r1.6 -r1.7 --- openacs-4/packages/bookmarks/www/tree-dynamic-postgresql.xql 29 Jun 2004 10:17:48 -0000 1.6 +++ openacs-4/packages/bookmarks/www/tree-dynamic-postgresql.xql 6 Jul 2016 09:10:10 -0000 1.7 @@ -19,13 +19,9 @@ ) b left join bm_urls using (url_id) where - exists (select 1 from all_object_party_privilege_map p - where - p.object_id = b.bookmark_id - and p.privilege = 'read' - and p.party_id = :user_id - ) - and b.bookmark_id <> :root_id + b.bookmark_id <> :root_id + and acs_permission__permission_p(b.bookmark_id, :user_id, 'read') + order by b.tree_sortkey