--- loncom/interface/loncommon.pm 2012/11/08 20:46:42 1.1096 +++ loncom/interface/loncommon.pm 2012/12/27 00:00:23 1.1107 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # a pile of common routines # -# $Id: loncommon.pm,v 1.1096 2012/11/08 20:46:42 raeburn Exp $ +# $Id: loncommon.pm,v 1.1107 2012/12/27 00:00:23 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -2511,7 +2511,7 @@ END return $result; } -sub authform_authorwarning{ +sub authform_authorwarning { my $result=''; $result=''. &mt('As a general rule, only authors or co-authors should be '. @@ -2520,16 +2520,16 @@ sub authform_authorwarning{ return $result; } -sub authform_nochange{ +sub authform_nochange { my %in = ( formname => 'document.cu', kerb_def_dom => 'MSU.EDU', @_, ); - my ($authnum,%can_assign) = &get_assignable_auth($in{'domain'}); + my ($authnum,%can_assign) = &get_assignable_auth($in{'domain'}); my $result; - if (keys(%can_assign) == 0) { - $result = &mt('Under you current role you are not permitted to change login settings for this user'); + if (!$authnum) { + $result = &mt('Under your current role you are not permitted to change login settings for this user'); } else { $result = '