--- loncom/interface/loncreateuser.pm 2008/07/13 09:57:29 1.249.2.2
+++ loncom/interface/loncreateuser.pm 2008/07/13 00:15:14 1.252
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Create a user
#
-# $Id: loncreateuser.pm,v 1.249.2.2 2008/07/13 09:57:29 raeburn Exp $
+# $Id: loncreateuser.pm,v 1.252 2008/07/13 00:15:14 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -1411,13 +1411,11 @@ sub personal_data_display {
$rolesarray = \@inststatuses;
}
}
- if (!$newuser) {
+ if (!$newuser || $context eq 'selfcreate') {
# Get the users information
%userenv = &Apache::lonnet::get('environment',
['firstname','middlename','lastname','generation',
'permanentemail','id'],$ccdomain,$ccuname);
- }
- if ((!$newuser) || ($context eq 'selfcreate')) {
%canmodify =
&Apache::lonuserutils::can_modify_userinfo($context,$ccdomain,
\@userinfo,$rolesarray);
@@ -1456,14 +1454,12 @@ sub personal_data_display {
$row .= ''.$inst_results->{$item};
} else {
if ($context eq 'selfcreate') {
- if ($canmodify{$item}) {
+ if ($canmodify{$item}) {
$row .= '';
$editable ++;
} else {
$hiderow = 1;
}
- } else {
- $row .= '';
}
}
} else {
@@ -1474,8 +1470,6 @@ sub personal_data_display {
} else {
$hiderow = 1;
}
- } else {
- $row .= '';
}
}
} else {