[LON-CAPA-cvs] cvs: loncom /auth lonroles.pm
albertel
lon-capa-cvs@mail.lon-capa.org
Tue, 08 Nov 2005 22:08:13 -0000
albertel Tue Nov 8 17:08:13 2005 EDT
Modified files:
/loncom/auth lonroles.pm
Log:
- CC role secltor comes along with the DC role into recent roles
Index: loncom/auth/lonroles.pm
diff -u loncom/auth/lonroles.pm:1.132 loncom/auth/lonroles.pm:1.133
--- loncom/auth/lonroles.pm:1.132 Tue Nov 8 16:54:03 2005
+++ loncom/auth/lonroles.pm Tue Nov 8 17:08:12 2005
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# User Roles Screen
#
-# $Id: lonroles.pm,v 1.132 2005/11/08 21:54:03 albertel Exp $
+# $Id: lonroles.pm,v 1.133 2005/11/08 22:08:12 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -609,6 +609,9 @@
foreach (sort(keys(%recent_roles))) {
if (defined($roletext{'user.role.'.$_})) {
$output.=$roletext{'user.role.'.$_};
+ if ($_ =~ m-dc\./(\w+)/- && $dcroles{$1}) {
+ $output .= &allcourses_row($1);
+ }
} elsif ($numdc > 0) {
unless ($_ =~/^error\:/) {
$output.=&display_cc_role('user.role.'.$_);