Index: openacs-4/packages/acs-templating/www/doc/demo/list1b/index-postgresql.xql =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/doc/demo/list1b/index-postgresql.xql,v diff -u -r1.1 -r1.2 --- openacs-4/packages/acs-templating/www/doc/demo/list1b/index-postgresql.xql 4 Feb 2006 19:09:15 -0000 1.1 +++ openacs-4/packages/acs-templating/www/doc/demo/list1b/index-postgresql.xql 7 Aug 2017 23:48:02 -0000 1.2 @@ -10,11 +10,7 @@ n.title from template_demo_notes n, acs_objects o where n.template_demo_note_id = o.object_id - and exists (select 1 - from acs_object_party_privilege_map - where object_id = template_demo_note_id - and party_id = :user_id - and privilege = 'read') + and acs_permission__permission_p(template_demo_note_id, :user_id, 'read')