Index: openacs-4/packages/acs-kernel/sql/oracle/acs-create.sql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/acs-kernel/sql/oracle/acs-create.sql,v
diff -u -r1.10.2.2 -r1.10.2.3
--- openacs-4/packages/acs-kernel/sql/oracle/acs-create.sql	21 Nov 2003 01:39:14 -0000	1.10.2.2
+++ openacs-4/packages/acs-kernel/sql/oracle/acs-create.sql	30 Nov 2003 01:17:56 -0000	1.10.2.3
@@ -170,6 +170,7 @@
   and m.rel_id = mr.rel_id
   and m.group_id = (select acs.magic_object_id('registered_users') from dual)
   and m.container_id = m.group_id
+  and m.rel_type = 'membership_rel'
   and mr.member_state = 'approved'
   and u.email_verified_p = 't';
 
@@ -200,7 +201,8 @@
 and m.group_id = mo.object_id
 and mo.name = 'registered_users'
 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';
 
 
 -----------------------------------
