Index: openacs-4/packages/acs-templating/www/doc/demo/list6/index-postgresql.xql =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/doc/demo/list6/index-postgresql.xql,v diff -u -r1.1 -r1.2 --- openacs-4/packages/acs-templating/www/doc/demo/list6/index-postgresql.xql 10 Feb 2006 00:47:17 -0000 1.1 +++ openacs-4/packages/acs-templating/www/doc/demo/list6/index-postgresql.xql 7 Aug 2017 23:48:02 -0000 1.2 @@ -16,13 +16,10 @@ acs_objects o, persons p where n.template_demo_note_id = o.object_id - and o.creation_user = p.person_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') - [template::list::orderby_clause -orderby -name notes] + and o.creation_user = p.person_id + and acs_permission__permission_p(template_demo_note_id, :user_id, 'read') + [template::list::orderby_clause -orderby -name notes] +