Index: openacs-4/packages/oacs-dav/tcl/oacs-dav-procs-postgresql.xql =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/oacs-dav/tcl/oacs-dav-procs-postgresql.xql,v diff -u -r1.6 -r1.7 --- openacs-4/packages/oacs-dav/tcl/oacs-dav-procs-postgresql.xql 7 Aug 2017 23:48:13 -0000 1.6 +++ openacs-4/packages/oacs-dav/tcl/oacs-dav-procs-postgresql.xql 3 Sep 2024 15:37:39 -0000 1.7 @@ -14,7 +14,7 @@ from cr_items c1, cr_items c2 where c2.item_id = :item_id and c1.tree_sortkey between c2.tree_sortkey and tree_right(c2.tree_sortkey) - and acs_permission__permission_p(cr_items.item_id, :user_id, :privilege) + and not acs_permission__permission_p(c1.item_id, :user_id, :privilege)