[LON-CAPA-cvs] cvs: loncom /interface loncommon.pm
tempelho
tempelho@source.lon-capa.org
Sat, 16 May 2009 07:59:10 -0000
tempelho Sat May 16 07:59:10 2009 EDT
Modified files:
/loncom/interface loncommon.pm
Log:
Fixed the problem that the student color scheme can be loaded.
Index: loncom/interface/loncommon.pm
diff -u loncom/interface/loncommon.pm:1.817 loncom/interface/loncommon.pm:1.818
--- loncom/interface/loncommon.pm:1.817 Fri May 15 18:06:13 2009
+++ loncom/interface/loncommon.pm Sat May 16 07:59:09 2009
@@ -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 @@
###############################################
sub get_users_function {
my $function = 'norole';
+ if ($env{'request.role'}=~/^(st)/) {
+ $function='student';
+ }
if ($env{'request.role'}=~/^(cc|in|ta|ep)/) {
$function='coordinator';
}