Index: openacs-4/packages/acs-kernel/sql/postgresql/acs-permissions-create.sql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/acs-kernel/sql/postgresql/acs-permissions-create.sql,v
diff -u -r1.15 -r1.16
--- openacs-4/packages/acs-kernel/sql/postgresql/acs-permissions-create.sql	1 Sep 2001 20:26:39 -0000	1.15
+++ openacs-4/packages/acs-kernel/sql/postgresql/acs-permissions-create.sql	15 Nov 2001 01:47:13 -0000	1.16
@@ -361,7 +361,8 @@
                    where
                      h1.privilege = p1.privilege
                      and h2.privilege = p2.privilege
-                     and h2.tree_sortkey like h1.tree_sortkey || '%');
+                     and h2.tree_sortkey like h1.tree_sortkey || '%') or
+     p1.privilege = p2.privilege;
 
 create view acs_permissions_all
 as select op.object_id, p.grantee_id, p.privilege
