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.6.2.1 --- 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 21 Sep 2022 12:17:28 -0000 1.6.2.1 @@ -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)