Index: openacs-4/packages/project-manager/www/tasks-postgresql.xql =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/project-manager/www/tasks-postgresql.xql,v diff -u -r1.2 -r1.3 --- openacs-4/packages/project-manager/www/tasks-postgresql.xql 30 Apr 2005 06:59:34 -0000 1.2 +++ openacs-4/packages/project-manager/www/tasks-postgresql.xql 26 May 2005 09:34:29 -0000 1.3 @@ -53,8 +53,12 @@ t.parent_id = proj.item_id and proj.live_revision = proj_rev.revision_id and proj.parent_id = f.folder_id - and f.package_id = :package_id + and f.package_id = :package_id [template::list::page_where_clause -and -name "tasks" -key "ts.task_id"] + and exists (select 1 from acs_object_party_privilege_map ppm + where ppm.object_id = ts.task_id + and ppm.privilege = 'read' + and ppm.party_id = :user_id) [template::list::filter_where_clauses -and -name tasks] [template::list::orderby_clause -orderby -name tasks]