Index: openacs-4/packages/dotlrn/sql/oracle/dotlrn-users-create.sql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/sql/oracle/Attic/dotlrn-users-create.sql,v
diff -u -r1.12 -r1.13
--- openacs-4/packages/dotlrn/sql/oracle/dotlrn-users-create.sql	29 Mar 2002 19:14:44 -0000	1.12
+++ openacs-4/packages/dotlrn/sql/oracle/dotlrn-users-create.sql	6 Apr 2002 06:27:32 -0000	1.13
@@ -57,20 +57,24 @@
 as
     select acs_rels.rel_id,
            dotlrn_user_profile_rels.id,
-           registered_users.user_id,
-           registered_users.first_names,
-           registered_users.last_name,
-           registered_users.email,
+           users.user_id,
+           persons.first_names,
+           persons.last_name,
+           parties.email,
            dotlrn_user_types.type,
            dotlrn_user_types.pretty_name as pretty_type,
            dotlrn_user_types.group_id
     from dotlrn_user_profile_rels,
+         dotlrn_user_types,
          acs_rels,
-         registered_users,
-         dotlrn_user_types
-    where acs_rels.object_id_two = registered_users.user_id
+         parties,
+         users,
+         persons
+    where dotlrn_user_profile_rels.rel_id = acs_rels.rel_id
     and acs_rels.object_id_one = dotlrn_user_types.group_id
-    and acs_rels.rel_id = dotlrn_user_profile_rels.rel_id;
+    and acs_rels.object_id_two = parties.party_id
+    and parties.party_id = users.user_id
+    and users.user_id = persons.person_id;
 
 create or replace view dotlrn_full_users
 as
