--- loncom/interface/loncommon.pm 2012/12/17 17:45:32 1.1103 +++ loncom/interface/loncommon.pm 2012/12/19 23:03:37 1.1104 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # a pile of common routines # -# $Id: loncommon.pm,v 1.1103 2012/12/17 17:45:32 raeburn Exp $ +# $Id: loncommon.pm,v 1.1104 2012/12/19 23:03:37 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -2526,10 +2526,10 @@ sub authform_nochange{ 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 you current role you are not permitted to change login settings for this user'); } else { $result = '