Index: openacs-4/packages/acs-kernel/sql/postgresql/acs-create.sql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/acs-kernel/sql/postgresql/acs-create.sql,v
diff -u -r1.22.2.3 -r1.22.2.4
--- openacs-4/packages/acs-kernel/sql/postgresql/acs-create.sql	24 Nov 2003 17:25:15 -0000	1.22.2.3
+++ openacs-4/packages/acs-kernel/sql/postgresql/acs-create.sql	30 Nov 2003 01:17:56 -0000	1.22.2.4
@@ -155,6 +155,7 @@
   and amo.name = 'registered_users'
   and m.group_id = amo.object_id
   and m.container_id = m.group_id
+  and m.rel_type = 'membership_rel'
   and mr.member_state = 'approved'
   and u.email_verified_p = 't';
 
@@ -179,7 +180,8 @@
   and amo.name = 'registered_users'
   and m.group_id = amo.object_id
   and m.rel_id = mr.rel_id
-  and m.container_id = m.group_id;
+  and m.container_id = m.group_id
+  and m.rel_type = 'membership_rel';
 
 
 -----------------------------------
