Index: openacs-4/packages/project-manager/www/task-delete-postgresql.xql =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/project-manager/www/task-delete-postgresql.xql,v diff -u -r1.1 -r1.2 --- openacs-4/packages/project-manager/www/task-delete-postgresql.xql 29 Apr 2005 17:43:38 -0000 1.1 +++ openacs-4/packages/project-manager/www/task-delete-postgresql.xql 26 May 2005 09:34:29 -0000 1.2 @@ -28,6 +28,10 @@ t.item_id = :task_item_id and t.item_id = i.item_id and i.live_revision = t.revision_id + and exists (select 1 from acs_object_party_privilege_map ppm + where ppm.object_id = :task_item_id + and ppm.privilege = 'read' + and ppm.party_id = :user_id)