--- loncom/interface/lonuserutils.pm 2010/11/15 17:37:47 1.109.2.9
+++ loncom/interface/lonuserutils.pm 2010/11/15 17:57:35 1.109.2.10
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Utility functions for managing LON-CAPA user accounts
#
-# $Id: lonuserutils.pm,v 1.109.2.9 2010/11/15 17:37:47 raeburn Exp $
+# $Id: lonuserutils.pm,v 1.109.2.10 2010/11/15 17:57:35 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -4401,8 +4401,14 @@ sub upfile_drop_add {
}
}
if (!$cancreate{$usertype}) {
- $r->print('
'.
- &mt("[_1]: The user does not exist, and you are not permitted to create users of type: $longtypes{$usertype}.",''.$username.''));
+ my $showtype = $longtypes{$usertype};
+ if ($usertype eq 'unofficial') {
+ $r->print('
'.
+ &mt("[_1]: The user does not exist, and the new user's username must be an e-mail address.",''.$username.''));
+ } else {
+ $r->print('
'.
+ &mt("[_1]: The user does not exist, and you are not permitted to create users of type: [_2].",''.$username.'',$showtype));
+ }
next;
}
} else {