Index: openacs-4/packages/wp-slim/www/index-postgresql.xql =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/wp-slim/www/index-postgresql.xql,v diff -u -r1.4 -r1.5 --- openacs-4/packages/wp-slim/www/index-postgresql.xql 22 Sep 2003 18:41:27 -0000 1.4 +++ openacs-4/packages/wp-slim/www/index-postgresql.xql 5 Jul 2016 17:10:20 -0000 1.5 @@ -56,11 +56,7 @@ and ao.creation_user = p.person_id and ao.context_id = :package_id $extra_where_clauses - and exists (select 1 - from acs_object_party_privilege_map m - where m.object_id = i.item_id - and m.party_id = :user_id - and m.privilege = 'wp_view_presentation') + and acs_permission__permission_p(i.item_id, :user_id, 'wp_view_presentation')