--- loncom/interface/loncommon.pm 2009/05/15 18:06:13 1.817 +++ loncom/interface/loncommon.pm 2009/05/16 07:59:09 1.818 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # a pile of common routines # -# $Id: loncommon.pm,v 1.817 2009/05/15 18:06:13 bisitz Exp $ +# $Id: loncommon.pm,v 1.818 2009/05/16 07:59:09 tempelho Exp $ # # Copyright Michigan State University Board of Trustees # @@ -6771,6 +6771,9 @@ Returns either 'student','coordinator',' ############################################### sub get_users_function { my $function = 'norole'; + if ($env{'request.role'}=~/^(st)/) { + $function='student'; + } if ($env{'request.role'}=~/^(cc|in|ta|ep)/) { $function='coordinator'; }